Struct ecksport_core::frame::MsgFlags
source · pub struct MsgFlags {
pub close: bool,
pub err: bool,
}Expand description
Flags sent along with a message payload to signal various conditions.
Fields§
§close: boolIf this closes the sending side of the channel (two close messages have to be sent to fully close it).
err: boolIf this data is an unusual error condition.
Implementations§
Trait Implementations§
source§impl BorshDeserialize for MsgFlags
impl BorshDeserialize for MsgFlags
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for MsgFlags
impl BorshSerialize for MsgFlags
impl Copy for MsgFlags
impl Eq for MsgFlags
impl StructuralPartialEq for MsgFlags
Auto Trait Implementations§
impl Freeze for MsgFlags
impl RefUnwindSafe for MsgFlags
impl Send for MsgFlags
impl Sync for MsgFlags
impl Unpin for MsgFlags
impl UnwindSafe for MsgFlags
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)