Struct async_prost::Frame[][src]

pub struct Frame<H, T> {
    pub header: Option<H>,
    pub body: Option<Either<Vec<u8>, T>>,
}

Decoded frame from buffer

Fields

header: Option<H>

header of the frame

body: Option<Either<Vec<u8>, T>>

body of the frame

Trait Implementations

impl<H: Debug, T: Debug> Debug for Frame<H, T>[src]

impl<H, T> Default for Frame<H, T>[src]

impl<H, T> Framed for Frame<H, T> where
    H: Message + ShallDecodeBody + Default,
    T: Message + Default
[src]

Auto Trait Implementations

impl<H, T> RefUnwindSafe for Frame<H, T> where
    H: RefUnwindSafe,
    T: RefUnwindSafe

impl<H, T> Send for Frame<H, T> where
    H: Send,
    T: Send

impl<H, T> Sync for Frame<H, T> where
    H: Sync,
    T: Sync

impl<H, T> Unpin for Frame<H, T> where
    H: Unpin,
    T: Unpin

impl<H, T> UnwindSafe for Frame<H, T> where
    H: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

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.