pub struct CanonicalEntry<T>where
T: Debug,{
pub con_id: ConId,
pub instant: Instant,
pub time: SystemTime,
pub msg: Message<T>,
}Expand description
A structure that is used to capture not only information about the message but also the following attributes:
con_id- Connection detail information via ConIdinstant- The instant of time the message was received via Instanttime- The system time the message was received via SystemTimemsg- relative direction of the message beingsentorreceivedvia Message variants Message::Sent or Message::Recv
Fields§
§con_id: ConId§instant: Instant§time: SystemTime§msg: Message<T>Implementations§
Source§impl<T> CanonicalEntry<T>where
T: Debug,
impl<T> CanonicalEntry<T>where
T: Debug,
pub fn try_into_recv(self) -> T
pub fn try_into_sent(self) -> T
Trait Implementations§
Source§impl<T> Clone for CanonicalEntry<T>
impl<T> Clone for CanonicalEntry<T>
Source§fn clone(&self) -> CanonicalEntry<T>
fn clone(&self) -> CanonicalEntry<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for CanonicalEntry<T>where
T: Debug,
impl<T> Debug for CanonicalEntry<T>where
T: Debug,
Source§impl<T> Display for CanonicalEntry<T>where
T: Debug,
impl<T> Display for CanonicalEntry<T>where
T: Debug,
Source§impl<T> PartialEq for CanonicalEntry<T>
impl<T> PartialEq for CanonicalEntry<T>
Source§fn eq(&self, other: &CanonicalEntry<T>) -> bool
fn eq(&self, other: &CanonicalEntry<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> StructuralPartialEq for CanonicalEntry<T>where
T: Debug,
Auto Trait Implementations§
impl<T> Freeze for CanonicalEntry<T>where
T: Freeze,
impl<T> RefUnwindSafe for CanonicalEntry<T>where
T: RefUnwindSafe,
impl<T> Send for CanonicalEntry<T>where
T: Send,
impl<T> Sync for CanonicalEntry<T>where
T: Sync,
impl<T> Unpin for CanonicalEntry<T>where
T: Unpin,
impl<T> UnsafeUnpin for CanonicalEntry<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CanonicalEntry<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