Struct fluvio_dataplane_protocol::api::ResponseMessage
source · [−]pub struct ResponseMessage<P> {
pub correlation_id: i32,
pub response: P,
}
Fields
correlation_id: i32
response: P
Implementations
sourceimpl<P> ResponseMessage<P>
impl<P> ResponseMessage<P>
pub fn from_header(header: &RequestHeader, response: P) -> ResponseMessage<P>
pub fn new(correlation_id: i32, response: P) -> ResponseMessage<P>
sourceimpl<P> ResponseMessage<P> where
P: Decoder,
impl<P> ResponseMessage<P> where
P: Decoder,
pub fn decode_from<T>(
src: &mut T,
version: i16
) -> Result<ResponseMessage<P>, Error> where
T: Buf,
pub fn decode_from_file<H>(
file_name: H,
version: i16
) -> Result<ResponseMessage<P>, Error> where
H: AsRef<Path>,
Trait Implementations
sourceimpl<P> Debug for ResponseMessage<P> where
P: Debug,
impl<P> Debug for ResponseMessage<P> where
P: Debug,
sourceimpl<P> Default for ResponseMessage<P> where
P: Default,
impl<P> Default for ResponseMessage<P> where
P: Default,
sourcefn default() -> ResponseMessage<P>
fn default() -> ResponseMessage<P>
Returns the “default value” for a type. Read more
sourceimpl<P> Encoder for ResponseMessage<P> where
P: Encoder + Default,
impl<P> Encoder for ResponseMessage<P> where
P: Encoder + Default,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more