pub struct MiddlewareCaller<C> { /* private fields */ }Implementations§
Source§impl<C> MiddlewareCaller<C>
impl<C> MiddlewareCaller<C>
pub fn new(caller: C, service: &'static ServiceDescriptor) -> Self
pub fn with_middleware(self, middleware: impl ClientMiddleware) -> Self
Trait Implementations§
Source§impl<C> Caller for MiddlewareCaller<C>where
C: Caller,
impl<C> Caller for MiddlewareCaller<C>where
C: Caller,
Source§async fn call<'a>(&'a self, call: RequestCall<'a>) -> CallResult
async fn call<'a>(&'a self, call: RequestCall<'a>) -> CallResult
Start one outgoing request attempt for an API-level call and wait for
its response. Read more
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Return whether the underlying connection is still considered connected. Read more
Source§fn channel_binder(&self) -> Option<&dyn ChannelBinder>
fn channel_binder(&self) -> Option<&dyn ChannelBinder>
Return a channel binder for binding Tx/Rx handles in args before sending. Read more
Source§impl<C: Clone> Clone for MiddlewareCaller<C>
impl<C: Clone> Clone for MiddlewareCaller<C>
Source§fn clone(&self) -> MiddlewareCaller<C>
fn clone(&self) -> MiddlewareCaller<C>
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<C> Freeze for MiddlewareCaller<C>where
C: Freeze,
impl<C> !RefUnwindSafe for MiddlewareCaller<C>
impl<C> Send for MiddlewareCaller<C>where
C: Send,
impl<C> Sync for MiddlewareCaller<C>where
C: Sync,
impl<C> Unpin for MiddlewareCaller<C>where
C: Unpin,
impl<C> UnsafeUnpin for MiddlewareCaller<C>where
C: UnsafeUnpin,
impl<C> !UnwindSafe for MiddlewareCaller<C>
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