pub struct BatchClient { /* private fields */ }
Implementations§
Source§impl BatchClient
impl BatchClient
pub async fn connect( meta: ConnectionMeta, channel_buffer_size: usize, interval: Duration, ) -> Result<Self>
pub async fn connect_with_cb<CB: NotificationCallback + Send + Sync + 'static>( meta: ConnectionMeta, channel_buffer_size: usize, interval: Duration, notification_cb: CB, ) -> Result<Self>
pub async fn call_instantly<'a, C: Call + Reply>( &'a self, call: &'a C, ) -> Result<C::Reply>
pub async fn call_value_instantly<'a, C: Call>( &'a self, call: &'a C, ) -> Result<Value>
pub async fn call<C: Call + Reply + Send + Sync + 'static>( &self, call: C, ) -> Result<C::Reply>
pub async fn call_value<C: Call + Send + Sync + 'static>( &self, call: C, ) -> Result<Value>
Trait Implementations§
Source§impl Clone for BatchClient
impl Clone for BatchClient
Source§fn clone(&self) -> BatchClient
fn clone(&self) -> BatchClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BatchClient
impl !RefUnwindSafe for BatchClient
impl Send for BatchClient
impl Sync for BatchClient
impl Unpin for BatchClient
impl !UnwindSafe for BatchClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more