pub struct Client { /* private fields */ }
Implementations
sourceimpl Client
impl Client
pub fn subscribe_with_pattern(
&mut self,
topic_pattern: URI,
callback: Box<dyn FnMut(Vec<Value, Global>, HashMap<String, Value, RandomState>) + 'static, Global>,
policy: MatchingPolicy
) -> Result<Future<Subscription, CallError>, Error>
pub fn subscribe(
&mut self,
topic: URI,
callback: Box<dyn FnMut(Vec<Value, Global>, HashMap<String, Value, RandomState>) + 'static, Global>
) -> Result<Future<Subscription, CallError>, Error>
pub fn register_with_pattern(
&mut self,
procedure_pattern: URI,
callback: Box<dyn FnMut(Vec<Value, Global>, HashMap<String, Value, RandomState>) + 'static, Global>,
policy: MatchingPolicy
) -> Result<Future<Registration, CallError>, Error>
pub fn register(
&mut self,
procedure: URI,
callback: Box<dyn FnMut(Vec<Value, Global>, HashMap<String, Value, RandomState>) + 'static, Global>
) -> Result<Future<Registration, CallError>, Error>
pub fn unsubscribe(
&mut self,
subscription: Subscription
) -> Result<Future<(), CallError>, Error>
pub fn unregister(
&mut self,
registration: Registration
) -> Result<Future<(), CallError>, Error>
pub fn publish(
&mut self,
topic: URI,
args: Option<Vec<Value, Global>>,
kwargs: Option<HashMap<String, Value, RandomState>>
) -> Result<(), Error>
pub fn call(
&mut self,
procedure: URI,
args: Option<Vec<Value, Global>>,
kwargs: Option<HashMap<String, Value, RandomState>>
) -> Result<Future<(Vec<Value, Global>, HashMap<String, Value, RandomState>), CallError>, Error>
pub fn publish_and_acknowledge(
&mut self,
topic: URI,
args: Option<Vec<Value, Global>>,
kwargs: Option<HashMap<String, Value, RandomState>>
) -> Result<Future<u64, CallError>, Error>
pub fn shutdown(&mut self) -> Result<Future<(), CallError>, Error>
Auto Trait Implementations
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more