pub struct BorshMessage<'data, Id = Id64>where
Id: BorshSerialize + BorshDeserialize + 'data,{
pub header: BorshHeader<Id>,
pub payload: &'data [u8],
}Expand description
A decoded IPC message, pairing its BorshHeader with a borrowed slice of
the raw payload bytes that follow the header.
Fields§
§header: BorshHeader<Id>Decoded message header describing the kind, id and operation.
payload: &'data [u8]Raw payload bytes that follow the header in the encoded message.
Trait Implementations§
Source§impl<'data, Id> Debug for BorshMessage<'data, Id>
impl<'data, Id> Debug for BorshMessage<'data, Id>
Auto Trait Implementations§
impl<'data, Id> Freeze for BorshMessage<'data, Id>where
Id: Freeze,
impl<'data, Id> RefUnwindSafe for BorshMessage<'data, Id>where
Id: RefUnwindSafe,
impl<'data, Id> Send for BorshMessage<'data, Id>where
Id: Send,
impl<'data, Id> Sync for BorshMessage<'data, Id>where
Id: Sync,
impl<'data, Id> Unpin for BorshMessage<'data, Id>where
Id: Unpin,
impl<'data, Id> UnsafeUnpin for BorshMessage<'data, Id>where
Id: UnsafeUnpin,
impl<'data, Id> UnwindSafe for BorshMessage<'data, Id>where
Id: 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