Struct rabbitmq_stream_client::types::Response
source · pub struct Response { /* private fields */ }
Implementations§
source§impl Response
impl Response
pub fn new(header: Header, kind: ResponseKind) -> Response
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 PartialEq for Response
impl PartialEq for Response
impl Eq for Response
impl StructuralEq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more