Struct rlp::PayloadInfo
source · pub struct PayloadInfo {
pub header_len: usize,
pub value_len: usize,
}
Expand description
Stores basic information about item
Fields§
§header_len: usize
Header length in bytes
value_len: usize
Value length in bytes
Implementations§
source§impl 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 Freeze for PayloadInfo
impl RefUnwindSafe for PayloadInfo
impl Send for PayloadInfo
impl Sync for PayloadInfo
impl Unpin for PayloadInfo
impl UnwindSafe for PayloadInfo
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