Struct nitox::commands::SubCommand [−][src]
SUB initiates a subscription to a subject, optionally joining a distributed queue group.
Fields
subject: String
The subject name to subscribe to
queue_group: Option<String>
If specified, the subscriber will join this queue group
sid: String
A unique alphanumeric subscription ID, generated by the client
Methods
impl SubCommand
[src]
impl SubCommand
pub fn builder() -> SubCommandBuilder
[src]
pub fn builder() -> SubCommandBuilder
pub fn generate_sid() -> String
[src]
pub fn generate_sid() -> String
Generates a random sid
String
Trait Implementations
impl Debug for SubCommand
[src]
impl Debug for SubCommand
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for SubCommand
[src]
impl Clone for SubCommand
fn clone(&self) -> SubCommand
[src]
fn clone(&self) -> SubCommand
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for SubCommand
[src]
impl PartialEq for SubCommand
fn eq(&self, other: &SubCommand) -> bool
[src]
fn eq(&self, other: &SubCommand) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SubCommand) -> bool
[src]
fn ne(&self, other: &SubCommand) -> bool
This method tests for !=
.
impl From<SubCommand> for UnsubCommand
[src]
impl From<SubCommand> for UnsubCommand
fn from(cmd: SubCommand) -> Self
[src]
fn from(cmd: SubCommand) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for SubCommand
impl Send for SubCommand
impl Sync for SubCommand
impl Sync for SubCommand