pub struct SubscribeCommand { /* private fields */ }
Implementations§
Source§impl SubscribeCommand
impl SubscribeCommand
pub fn new( topic: &str, subscription: &str, subscribe_type: SubscribeType, ) -> Self
pub fn set_consumer_id(&mut self, consumer_id: ConsumerId) -> &mut Self
pub fn get_consumer_id(&self) -> ConsumerId
pub fn set_request_id(&mut self, request_id: RequestId) -> &mut Self
pub fn get_request_id(&self) -> RequestId
pub fn set_consumer_name(&mut self, consumer_name: &str) -> &mut Self
pub fn append_metadata(&mut self, metadata: &[(&str, &str)]) -> &mut Self
pub fn clear_metadata(&mut self) -> &mut Self
Trait Implementations§
Source§impl Clone for SubscribeCommand
impl Clone for SubscribeCommand
Source§fn clone(&self) -> SubscribeCommand
fn clone(&self) -> SubscribeCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SubscribeCommand
impl Debug for SubscribeCommand
Source§impl From<&SubscribeCommand> for Command
impl From<&SubscribeCommand> for Command
Source§fn from(c: &SubscribeCommand) -> Self
fn from(c: &SubscribeCommand) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SubscribeCommand
impl RefUnwindSafe for SubscribeCommand
impl Send for SubscribeCommand
impl Sync for SubscribeCommand
impl Unpin for SubscribeCommand
impl UnwindSafe for SubscribeCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)