Struct nitox::commands::PubCommand
source · Expand description
The PUB message publishes the message payload to the given subject name, optionally supplying a reply subject. If a reply subject is supplied, it will be delivered to eligible subscribers along with the supplied payload. Note that the payload itself is optional.
Fields
subject: String
The destination subject to publish to
reply_to: Option<String>
The optional reply inbox subject that subscribers can use to send a response back to the publisher/requestor
payload: Bytes
The message payload data
Implementations
sourceimpl PubCommand
impl PubCommand
pub fn builder() -> PubCommandBuilder
sourcepub fn generate_reply_to() -> String
pub fn generate_reply_to() -> String
Generates a random reply_to
String
Trait Implementations
sourceimpl Clone for PubCommand
impl Clone for PubCommand
sourcefn clone(&self) -> PubCommand
fn clone(&self) -> PubCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Command for PubCommand
impl Command for PubCommand
sourceimpl Debug for PubCommand
impl Debug for PubCommand
sourceimpl PartialEq<PubCommand> for PubCommand
impl PartialEq<PubCommand> for PubCommand
sourcefn eq(&self, other: &PubCommand) -> bool
fn eq(&self, other: &PubCommand) -> bool
impl StructuralPartialEq for PubCommand
Auto Trait Implementations
impl RefUnwindSafe for PubCommand
impl Send for PubCommand
impl Sync for PubCommand
impl Unpin for PubCommand
impl UnwindSafe for PubCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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