[][src]Struct ratsio::stan_client::StanClient

pub struct StanClient {
    pub options: StanOptions,
    pub nats_client: Arc<NatsClient>,
    pub client_id: String,
    pub client_info: Arc<RwLock<ClientInfo>>,
    pub ping_max_out: i32,
    pub ping_interval: i32,
    pub protocol: i32,
    pub public_key: String,
    // some fields omitted
}

Fields

options: StanOptionsnats_client: Arc<NatsClient>client_id: Stringclient_info: Arc<RwLock<ClientInfo>>ping_max_out: i32ping_interval: i32protocol: i32public_key: String

Methods

impl StanClient
[src]

pub fn from_options(
    options: StanOptions
) -> impl Future<Item = Arc<Self>, Error = RatsioError>
[src]

pub fn get_subscription(&self, id: &str) -> Option<Arc<Subscription>>
[src]

pub fn subscribe<T>(
    &self,
    subscribe: StanSubscribe,
    handler: T
) -> impl Future<Item = String, Error = RatsioError> where
    T: Into<SubscriptionHandler>, 
[src]

pub fn send(
    &self,
    message: StanMessage
) -> impl Future<Item = (), Error = RatsioError>
[src]

Sends an OP to the server

pub fn close(
    &self
) -> impl Future<Item = (), Error = ()>
[src]

Auto Trait Implementations

impl Send for StanClient

impl Sync for StanClient

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self