Struct rlp::PayloadInfo
source · [−]Expand description
Stores basic information about item
Fields
header_len: usizeHeader length in bytes
value_len: usizeValue length in bytes
Implementations
sourceimpl PayloadInfo
impl PayloadInfo
sourcepub fn from(header_bytes: &[u8]) -> Result<PayloadInfo, DecoderError>
pub fn from(header_bytes: &[u8]) -> Result<PayloadInfo, DecoderError>
Create a new object from the given bytes RLP. The bytes
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PayloadInfo
impl Send for PayloadInfo
impl Sync for PayloadInfo
impl Unpin for PayloadInfo
impl UnwindSafe for PayloadInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more