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 SubCommandpub fn builder() -> SubCommandBuilder[src]
pub fn builder() -> SubCommandBuilderpub fn generate_sid() -> String[src]
pub fn generate_sid() -> StringGenerates a random sid String
Trait Implementations
impl Debug for SubCommand[src]
impl Debug for SubCommandfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for SubCommand[src]
impl Clone for SubCommandfn clone(&self) -> SubCommand[src]
fn clone(&self) -> SubCommandReturns 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 SubCommandfn eq(&self, other: &SubCommand) -> bool[src]
fn eq(&self, other: &SubCommand) -> boolThis 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) -> boolThis method tests for !=.
impl From<SubCommand> for UnsubCommand[src]
impl From<SubCommand> for UnsubCommandfn from(cmd: SubCommand) -> Self[src]
fn from(cmd: SubCommand) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for SubCommand
impl Send for SubCommandimpl Sync for SubCommand
impl Sync for SubCommand