[−]Struct fluvio_dataplane_protocol::core::api::ResponseMessage
Fields
correlation_id: i32
response: P
Implementations
impl<P> ResponseMessage<P>
pub fn from_header(header: &RequestHeader, response: P) -> ResponseMessage<P>
pub fn new(correlation_id: i32, response: P) -> ResponseMessage<P>
impl<P> ResponseMessage<P> where
P: Decoder,
P: Decoder,
pub fn decode_from<T>(
src: &mut T,
version: i16
) -> Result<ResponseMessage<P>, Error> where
T: Buf,
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>,
file_name: H,
version: i16
) -> Result<ResponseMessage<P>, Error> where
H: AsRef<Path>,
Trait Implementations
impl<P> Debug for ResponseMessage<P> where
P: Debug,
P: Debug,
impl<P> Default for ResponseMessage<P> where
P: Default,
P: Default,
fn default() -> ResponseMessage<P>
impl<P> Encoder for ResponseMessage<P> where
P: Encoder + Default,
P: Encoder + Default,
fn write_size(&self, version: i16) -> usize
fn encode<T>(&self, out: &mut T, version: i16) -> Result<(), Error> where
T: BufMut,
T: BufMut,
fn as_bytes(&self, version: i16) -> Result<Bytes, Error>
impl<P> FileWrite for ResponseMessage<P> where
P: FileWrite + Default,
[src]
P: FileWrite + Default,
This is same as encoding in the ResponseMessage but can encode async file slice
fn file_encode(
&self,
dest: &mut BytesMut,
data: &mut Vec<StoreValue>,
version: i16
) -> Result<(), Error>
[src]
&self,
dest: &mut BytesMut,
data: &mut Vec<StoreValue>,
version: i16
) -> Result<(), Error>
Auto Trait Implementations
impl<P> RefUnwindSafe for ResponseMessage<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for ResponseMessage<P> where
P: Send,
P: Send,
impl<P> Sync for ResponseMessage<P> where
P: Sync,
P: Sync,
impl<P> Unpin for ResponseMessage<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for ResponseMessage<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,