pub struct ProtocolMsg {
pub protocol_id: ProtocolID,
pub payload: Vec<u8>,
}
Expand description
Defines a message related to a specific protocol.
Fields§
§protocol_id: ProtocolID
§payload: Vec<u8>
Trait Implementations§
Source§impl<'__de> BorrowDecode<'__de> for ProtocolMsg
impl<'__de> BorrowDecode<'__de> for ProtocolMsg
Source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ProtocolMsg
impl Clone for ProtocolMsg
Source§fn clone(&self) -> ProtocolMsg
fn clone(&self) -> ProtocolMsg
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProtocolMsg
impl Debug for ProtocolMsg
Source§impl Decode for ProtocolMsg
impl Decode for ProtocolMsg
Auto Trait Implementations§
impl Freeze for ProtocolMsg
impl RefUnwindSafe for ProtocolMsg
impl Send for ProtocolMsg
impl Sync for ProtocolMsg
impl Unpin for ProtocolMsg
impl UnwindSafe for ProtocolMsg
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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