pub struct Response { /* private fields */ }
Implementations§
Source§impl Response
impl Response
pub fn new(header: Header, kind: ResponseKind) -> Self
pub fn correlation_id(&self) -> Option<u32>
pub fn get<T>(self) -> Option<T>where
T: FromResponse,
pub fn kind_ref(&self) -> &ResponseKind
pub fn kind(self) -> ResponseKind
Trait Implementations§
Source§impl Decoder for Response
impl Decoder for Response
fn decode(input: &[u8]) -> Result<(&[u8], Self), DecodeError>
fn decode_version_2(input: &[u8]) -> Result<(&[u8], Self), DecodeError>
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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