pub struct ErasedCaller { /* private fields */ }Expand description
Type-erased Caller wrapper used by generated clients.
Implementations§
Source§impl ErasedCaller
impl ErasedCaller
pub fn new<C: Caller>(caller: C) -> Self
pub fn with_middleware( self, service: &'static ServiceDescriptor, middleware: impl ClientMiddleware, ) -> Self
Trait Implementations§
Source§impl Caller for ErasedCaller
impl Caller for ErasedCaller
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 Clone for ErasedCaller
impl Clone for ErasedCaller
Source§fn clone(&self) -> ErasedCaller
fn clone(&self) -> ErasedCaller
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 ErasedCaller
impl !RefUnwindSafe for ErasedCaller
impl Send for ErasedCaller
impl Sync for ErasedCaller
impl Unpin for ErasedCaller
impl UnsafeUnpin for ErasedCaller
impl !UnwindSafe for ErasedCaller
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