Struct ratsio::stan_client::StanClient [−][src]
Fields
options: StanOptions
nats_client: Arc<NatsClient>
client_id: String
Implementations
impl StanClient
[src]
pub async fn from_options(
options: StanOptions
) -> Result<Arc<Self>, RatsioError>
[src]
options: StanOptions
) -> Result<Arc<Self>, RatsioError>
pub async fn subscribe<T>(
&self,
subject: T,
queue_group: Option<T>,
durable_name: Option<T>
) -> Result<(StanSid, impl Stream<Item = StanMessage> + Send + Sync), RatsioError> where
T: ToString,
[src]
&self,
subject: T,
queue_group: Option<T>,
durable_name: Option<T>
) -> Result<(StanSid, impl Stream<Item = StanMessage> + Send + Sync), RatsioError> where
T: ToString,
pub async fn subscribe_with_manual_ack<T>(
&self,
subject: T,
queue_group: Option<T>,
durable_name: Option<T>
) -> Result<(StanSid, impl Stream<Item = StanMessage> + Send + Sync), RatsioError> where
T: ToString,
[src]
&self,
subject: T,
queue_group: Option<T>,
durable_name: Option<T>
) -> Result<(StanSid, impl Stream<Item = StanMessage> + Send + Sync), RatsioError> where
T: ToString,
pub async fn subscribe_with_all<T>(
&self,
subject: T,
queue_group: Option<T>,
durable_name: Option<T>,
max_in_flight: i32,
ack_wait_in_secs: i32,
start_position: StartPosition,
start_sequence: u64,
start_time_delta: Option<i32>,
manual_acks: bool
) -> Result<(StanSid, impl Stream<Item = StanMessage> + Send + Sync), RatsioError> where
T: ToString,
[src]
&self,
subject: T,
queue_group: Option<T>,
durable_name: Option<T>,
max_in_flight: i32,
ack_wait_in_secs: i32,
start_position: StartPosition,
start_sequence: u64,
start_time_delta: Option<i32>,
manual_acks: bool
) -> Result<(StanSid, impl Stream<Item = StanMessage> + Send + Sync), RatsioError> where
T: ToString,
pub async fn subscribe_with<T>(
&self,
stan_subscribe: T
) -> Result<(StanSid, impl Stream<Item = StanMessage> + Send + Sync), RatsioError> where
T: Into<StanSubscribe>,
[src]
&self,
stan_subscribe: T
) -> Result<(StanSid, impl Stream<Item = StanMessage> + Send + Sync), RatsioError> where
T: Into<StanSubscribe>,
pub async fn acknowledge(&self, message: StanMessage) -> Result<(), RatsioError>
[src]
pub async fn publish<T>(
&self,
subject: T,
payload: &[u8]
) -> Result<(), RatsioError> where
T: ToString,
[src]
&self,
subject: T,
payload: &[u8]
) -> Result<(), RatsioError> where
T: ToString,
pub async fn send_with_reply<T>(
&self,
subject: T,
reply_to: T,
payload: &[u8]
) -> Result<(), RatsioError> where
T: ToString,
[src]
&self,
subject: T,
reply_to: T,
payload: &[u8]
) -> Result<(), RatsioError> where
T: ToString,
pub async fn send_with<T>(&self, message: T) -> Result<(), RatsioError> where
T: Into<StanMessage>,
[src]
T: Into<StanMessage>,
pub async fn un_subscribe(&self, stan_sid: &StanSid) -> Result<(), RatsioError>
[src]
pub async fn close(&self) -> Result<(), RatsioError>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for StanClient
impl Send for StanClient
impl Sync for StanClient
impl Unpin for StanClient
impl !UnwindSafe for StanClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,