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