Struct de_net::connection::book::ConnectionRecord
source · struct ConnectionRecord<T: Connection> {
last_update: Instant,
value: T,
}
Fields§
§last_update: Instant
§value: T
Implementations§
source§impl<T: Connection> ConnectionRecord<T>
impl<T: Connection> ConnectionRecord<T>
sourcefn is_inactive(&self, time: Instant) -> bool
fn is_inactive(&self, time: Instant) -> bool
Returns true
if the connection holds no pending data and was last
updated more than max_age
in the past.
Auto Trait Implementations§
impl<T> Freeze for ConnectionRecord<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConnectionRecord<T>where
T: RefUnwindSafe,
impl<T> Send for ConnectionRecord<T>where
T: Send,
impl<T> Sync for ConnectionRecord<T>where
T: Sync,
impl<T> Unpin for ConnectionRecord<T>where
T: Unpin,
impl<T> UnwindSafe for ConnectionRecord<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more