[][src]Struct aws_event_stream_parser::PreludeBlock

pub struct PreludeBlock {
    pub total_length: u32,
    pub headers_length: u32,
    pub checksum: u32,
}

Fields

total_length: u32headers_length: u32checksum: u32

Methods

impl PreludeBlock[src]

pub fn new(total_length: u32, headers_length: u32) -> PreludeBlock[src]

pub fn calculate_crc(&self) -> u32[src]

pub fn valid(&self) -> bool[src]

pub fn as_buffer(&self) -> Vec<u8>[src]

Trait Implementations

impl PartialEq<PreludeBlock> for PreludeBlock[src]

impl Debug for PreludeBlock[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]