pub struct DeliveryBlobHeader {
pub delivery_type: DeliveryBlobType,
pub header_length: u32,
}
Expand description
Typed header of an RFC 0207 compliant delivery blob.
Fields§
§delivery_type: DeliveryBlobType
§header_length: u32
Implementations§
Source§impl DeliveryBlobHeader
impl DeliveryBlobHeader
Sourcepub fn parse(
data: &[u8],
) -> Result<Option<DeliveryBlobHeader>, DeliveryBlobError>
pub fn parse( data: &[u8], ) -> Result<Option<DeliveryBlobHeader>, DeliveryBlobError>
Attempt to parse data
as a delivery blob. On success, returns validated blob header.
WARNING: This function does not verify that the payload is complete. Only the full
header of a delivery blob are required to be present in data
.
Trait Implementations§
Source§impl Clone for DeliveryBlobHeader
impl Clone for DeliveryBlobHeader
Source§fn clone(&self) -> DeliveryBlobHeader
fn clone(&self) -> DeliveryBlobHeader
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 DeliveryBlobHeader
impl Debug for DeliveryBlobHeader
Source§impl PartialEq for DeliveryBlobHeader
impl PartialEq for DeliveryBlobHeader
impl Copy for DeliveryBlobHeader
impl Eq for DeliveryBlobHeader
impl StructuralPartialEq for DeliveryBlobHeader
Auto Trait Implementations§
impl Freeze for DeliveryBlobHeader
impl RefUnwindSafe for DeliveryBlobHeader
impl Send for DeliveryBlobHeader
impl Sync for DeliveryBlobHeader
impl Unpin for DeliveryBlobHeader
impl UnwindSafe for DeliveryBlobHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)