Struct chain_impl_mockchain::transaction::payload::PayloadData
source · pub struct PayloadData<P: ?Sized>(pub(crate) Box<[u8]>, pub(crate) PhantomData<P>);
Expand description
Owned binary representation of a payload
Tuple Fields§
§0: Box<[u8]>
§1: PhantomData<P>
Implementations§
source§impl<P: ?Sized> PayloadData<P>
impl<P: ?Sized> PayloadData<P>
pub fn borrow(&self) -> PayloadSlice<'_, P>
Trait Implementations§
Auto Trait Implementations§
impl<P: ?Sized> RefUnwindSafe for PayloadData<P>where P: RefUnwindSafe,
impl<P: ?Sized> Send for PayloadData<P>where P: Send,
impl<P: ?Sized> Sync for PayloadData<P>where P: Sync,
impl<P: ?Sized> Unpin for PayloadData<P>where P: Unpin,
impl<P: ?Sized> UnwindSafe for PayloadData<P>where P: UnwindSafe,
Blanket Implementations§
§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)