pub struct Peek {
pub message_type: Option<String>,
pub kind: Option<MessageKind>,
pub message_id: Option<Id>,
pub subject_message_id: Option<Id>,
}Expand description
What a decode learned before trying to build a typed message.
Everything here is optional because everything here can be missing from a message that a peer should not have sent but did.
Fields§
§message_type: Option<String>The raw message_type string, if there was one.
kind: Option<MessageKind>The message kind, if this crate knows that type.
message_id: Option<Id>The message_id, if there was one and it was a valid identifier.
subject_message_id: Option<Id>The subject_message_id, for a ReceptionStatus.
Implementations§
Trait Implementations§
impl Eq for Peek
impl StructuralPartialEq for Peek
Auto Trait Implementations§
impl Freeze for Peek
impl RefUnwindSafe for Peek
impl Send for Peek
impl Sync for Peek
impl Unpin for Peek
impl UnsafeUnpin for Peek
impl UnwindSafe for Peek
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.