[][src]Struct ratsio::stan_client::StanOptions

pub struct StanOptions {
    pub nats_options: NatsClientOptions,
    pub cluster_id: String,
    pub client_id: String,
    pub ping_interval: u32,
    pub ping_max_out: u32,
    pub max_pub_acks_inflight: u32,
    pub discover_prefix: String,
    pub ack_prefix: String,
}

Fields

nats_options: NatsClientOptionscluster_id: Stringclient_id: Stringping_interval: u32ping_max_out: u32max_pub_acks_inflight: u32discover_prefix: Stringack_prefix: String

Implementations

impl StanOptions[src]

pub fn new<S>(cluster_id: S, client_id: S) -> StanOptions where
    S: ToString
[src]

pub fn with_options<T, S>(
    nats_options: T,
    cluster_id: S,
    client_id: S
) -> StanOptions where
    T: Into<NatsClientOptions>,
    S: ToString
[src]

pub fn builder() -> StanOptionsBuilder[src]

Trait Implementations

impl Clone for StanOptions[src]

impl Debug for StanOptions[src]

impl Default for StanOptions[src]

impl PartialEq<StanOptions> for StanOptions[src]

impl StructuralPartialEq for StanOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.