pub struct ResponseMessage<P> {
pub correlation_id: i32,
pub response: P,
}
Fields§
§correlation_id: i32
§response: P
Implementations§
Source§impl<P> ResponseMessage<P>
impl<P> ResponseMessage<P>
pub fn from_header(header: &RequestHeader, response: P) -> Self
pub fn new(correlation_id: i32, response: P) -> Self
Trait Implementations§
Source§impl<P: Debug> Debug for ResponseMessage<P>
impl<P: Debug> Debug for ResponseMessage<P>
Source§impl<P: Default> Default for ResponseMessage<P>
impl<P: Default> Default for ResponseMessage<P>
Source§fn default() -> ResponseMessage<P>
fn default() -> ResponseMessage<P>
Returns the “default value” for a type. Read more
Source§impl<P> Encoder for ResponseMessage<P>
impl<P> Encoder for ResponseMessage<P>
Auto Trait Implementations§
impl<P> Freeze for ResponseMessage<P>where
P: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more