Struct nats::jetstream::PullSubscribeOptions
source · pub struct PullSubscribeOptions { /* private fields */ }
Expand description
Options to configure Pull Subsscription
Implementations
sourceimpl PullSubscribeOptions
impl PullSubscribeOptions
sourcepub fn new() -> PullSubscribeOptions
pub fn new() -> PullSubscribeOptions
creates new options
sourcepub fn bind_stream(self, stream_name: String) -> Self
pub fn bind_stream(self, stream_name: String) -> Self
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
pub fn consumer_config(self, consumer_config: ConsumerConfig) -> Self
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
pub fn durable_name(self, consumer_name: String) -> Self
define consumer name
Trait Implementations
sourceimpl Clone for PullSubscribeOptions
impl Clone for PullSubscribeOptions
sourcefn clone(&self) -> PullSubscribeOptions
fn clone(&self) -> PullSubscribeOptions
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 Debug for PullSubscribeOptions
impl Debug for PullSubscribeOptions
sourceimpl Default for PullSubscribeOptions
impl Default for PullSubscribeOptions
sourcefn default() -> PullSubscribeOptions
fn default() -> PullSubscribeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PullSubscribeOptions
impl Send for PullSubscribeOptions
impl Sync for PullSubscribeOptions
impl Unpin for PullSubscribeOptions
impl UnwindSafe for PullSubscribeOptions
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