pub struct PayloadU16(pub Vec<u8>);
Expand description
An arbitrary, unknown-content, u16-length-prefixed payload
Tuple Fields§
§0: Vec<u8>
Implementations§
Source§impl PayloadU16
impl PayloadU16
pub fn new(bytes: Vec<u8>) -> PayloadU16
pub fn empty() -> PayloadU16
pub fn encode_slice(slice: &[u8], bytes: &mut Vec<u8>)
Trait Implementations§
Source§impl Clone for PayloadU16
impl Clone for PayloadU16
Source§fn clone(&self) -> PayloadU16
fn clone(&self) -> PayloadU16
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 Codec for PayloadU16
impl Codec for PayloadU16
Source§impl Debug for PayloadU16
impl Debug for PayloadU16
Source§impl PartialEq for PayloadU16
impl PartialEq for PayloadU16
impl StructuralPartialEq for PayloadU16
Auto Trait Implementations§
impl Freeze for PayloadU16
impl RefUnwindSafe for PayloadU16
impl Send for PayloadU16
impl Sync for PayloadU16
impl Unpin for PayloadU16
impl UnwindSafe for PayloadU16
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