pub struct PullSubscribeOptions { /* private fields */ }👎Deprecated since 0.26.0:
use the async-nats crate instead
Expand description
Options to configure Pull Subscription
Implementations§
Source§impl PullSubscribeOptions
impl PullSubscribeOptions
Sourcepub fn new() -> PullSubscribeOptions
👎Deprecated since 0.26.0: use the async-nats crate instead
pub fn new() -> PullSubscribeOptions
use the async-nats crate instead
creates new options
Sourcepub fn bind_stream(self, stream_name: String) -> Self
👎Deprecated since 0.26.0: use the async-nats crate instead
pub fn bind_stream(self, stream_name: String) -> Self
use the async-nats crate instead
Binds subscription explicitly to a stream. If not specified, stream will be looked up based on the subject provided.
Sourcepub fn consumer_config(self, consumer_config: ConsumerConfig) -> Self
👎Deprecated since 0.26.0: use the async-nats crate instead
pub fn consumer_config(self, consumer_config: ConsumerConfig) -> Self
use the async-nats crate instead
when creating Pull Subscription to not existing consumer
Consumer Configuration can be specified
will apply only if bind_stream is not called and consumer doesn’t exist.
Sourcepub fn durable_name(self, consumer_name: String) -> Self
👎Deprecated since 0.26.0: use the async-nats crate instead
pub fn durable_name(self, consumer_name: String) -> Self
use the async-nats crate instead
define consumer name
Trait Implementations§
Source§impl Clone for PullSubscribeOptions
impl Clone for PullSubscribeOptions
Source§fn clone(&self) -> PullSubscribeOptions
fn clone(&self) -> PullSubscribeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PullSubscribeOptions
impl Debug for PullSubscribeOptions
Source§impl Default for PullSubscribeOptions
impl Default for PullSubscribeOptions
Source§fn default() -> PullSubscribeOptions
fn default() -> PullSubscribeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PullSubscribeOptions
impl RefUnwindSafe for PullSubscribeOptions
impl Send for PullSubscribeOptions
impl Sync for PullSubscribeOptions
impl Unpin for PullSubscribeOptions
impl UnsafeUnpin for PullSubscribeOptions
impl UnwindSafe for PullSubscribeOptions
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