Struct fluvio_protocol_api::ResponseMessage[][src]

pub struct ResponseMessage<P> {
    pub correlation_id: i32,
    pub response: P,
}

Fields

correlation_id: i32response: P

Implementations

impl<P> ResponseMessage<P>[src]

pub fn from_header(header: &RequestHeader, response: P) -> Self[src]

pub fn new(correlation_id: i32, response: P) -> Self[src]

impl<P> ResponseMessage<P> where
    P: Decoder
[src]

pub fn decode_from<T>(src: &mut T, version: Version) -> Result<Self, IoError> where
    T: Buf
[src]

pub fn decode_from_file<H: AsRef<Path>>(
    file_name: H,
    version: Version
) -> Result<Self, IoError>
[src]

Trait Implementations

impl<P: Debug> Debug for ResponseMessage<P>[src]

impl<P: Default> Default for ResponseMessage<P>[src]

impl<P> Encoder for ResponseMessage<P> where
    P: Encoder + Default
[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for ResponseMessage<P> where
    P: RefUnwindSafe

impl<P> Send for ResponseMessage<P> where
    P: Send

impl<P> Sync for ResponseMessage<P> where
    P: Sync

impl<P> Unpin for ResponseMessage<P> where
    P: Unpin

impl<P> UnwindSafe for ResponseMessage<P> where
    P: 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> Instrument 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.