pub enum MsgInfo {
Int(IntMsgInfo),
ExtIn(ExtInMsgInfo),
ExtOut(ExtOutMsgInfo),
}Expand description
Message info.
Variants§
Int(IntMsgInfo)
Internal message info,
ExtIn(ExtInMsgInfo)
External incoming message info.
ExtOut(ExtOutMsgInfo)
External outgoing message info,
Implementations§
Source§impl MsgInfo
impl MsgInfo
Sourcepub const fn is_internal(&self) -> bool
pub const fn is_internal(&self) -> bool
Returns whether this message is internal.
Sourcepub const fn is_external_in(&self) -> bool
pub const fn is_external_in(&self) -> bool
Returns whether this message is external incoming.
Sourcepub const fn is_external_out(&self) -> bool
pub const fn is_external_out(&self) -> bool
Returns whether this message is external outgoing.
Sourcepub const fn exact_size_const(&self) -> Size
pub const fn exact_size_const(&self) -> Size
Exact size of this value when it is stored in slice.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MsgInfo
impl<'de> Deserialize<'de> for MsgInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ExactSize for MsgInfo
impl ExactSize for MsgInfo
Source§fn exact_size(&self) -> Size
fn exact_size(&self) -> Size
Exact size of the value when it is stored in a slice.
Source§impl From<ExtInMsgInfo> for MsgInfo
impl From<ExtInMsgInfo> for MsgInfo
Source§fn from(value: ExtInMsgInfo) -> Self
fn from(value: ExtInMsgInfo) -> Self
Converts to this type from the input type.
Source§impl From<ExtOutMsgInfo> for MsgInfo
impl From<ExtOutMsgInfo> for MsgInfo
Source§fn from(value: ExtOutMsgInfo) -> Self
fn from(value: ExtOutMsgInfo) -> Self
Converts to this type from the input type.
Source§impl From<IntMsgInfo> for MsgInfo
impl From<IntMsgInfo> for MsgInfo
Source§fn from(value: IntMsgInfo) -> Self
fn from(value: IntMsgInfo) -> Self
Converts to this type from the input type.
Source§impl Store for MsgInfo
impl Store for MsgInfo
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for MsgInfo
impl StructuralPartialEq for MsgInfo
Auto Trait Implementations§
impl Freeze for MsgInfo
impl !RefUnwindSafe for MsgInfo
impl Send for MsgInfo
impl Sync for MsgInfo
impl Unpin for MsgInfo
impl !UnwindSafe for MsgInfo
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.