Struct rabbitmq_stream_protocol::commands::close::CloseRequest
source · [−]pub struct CloseRequest { /* private fields */ }
Implementations
sourceimpl CloseRequest
impl CloseRequest
pub fn new(
correlation_id: u32,
closing_code: ResponseCode,
closing_reason: String
) -> Self
Trait Implementations
sourceimpl Debug for CloseRequest
impl Debug for CloseRequest
sourceimpl Decoder for CloseRequest
impl Decoder for CloseRequest
sourceimpl Encoder for CloseRequest
impl Encoder for CloseRequest
fn encode(&self, writer: &mut impl Write) -> Result<(), EncodeError>
fn encoded_size(&self) -> u32
sourceimpl From<CloseRequest> for RequestKind
impl From<CloseRequest> for RequestKind
sourcefn from(cmd: CloseRequest) -> Self
fn from(cmd: CloseRequest) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<CloseRequest> for CloseRequest
impl PartialEq<CloseRequest> for CloseRequest
sourcefn eq(&self, other: &CloseRequest) -> bool
fn eq(&self, other: &CloseRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CloseRequest) -> bool
fn ne(&self, other: &CloseRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for CloseRequest
Auto Trait Implementations
impl RefUnwindSafe for CloseRequest
impl Send for CloseRequest
impl Sync for CloseRequest
impl Unpin for CloseRequest
impl UnwindSafe for CloseRequest
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