pub struct PeerRpcRemoteCapabilityInvoker<C> { /* private fields */ }Expand description
Remote capability invoker backed by the stable peer RPC client contract.
Implementations§
Source§impl<C> PeerRpcRemoteCapabilityInvoker<C>
impl<C> PeerRpcRemoteCapabilityInvoker<C>
Trait Implementations§
Source§impl<C> RemoteCapabilityInvoker for PeerRpcRemoteCapabilityInvoker<C>where
C: PeerRpcClientExecutor,
impl<C> RemoteCapabilityInvoker for PeerRpcRemoteCapabilityInvoker<C>where
C: PeerRpcClientExecutor,
Source§fn invoke_remote(
&self,
peer: &PeerRecord,
request: &CapabilityRequest,
) -> CapabilityResult<CapabilityResponse>
fn invoke_remote( &self, peer: &PeerRecord, request: &CapabilityRequest, ) -> CapabilityResult<CapabilityResponse>
Sends one request to the selected peer and returns its response.
Source§fn invoke_remote_owned(
&self,
peer: &PeerRecord,
request: CapabilityRequest,
) -> CapabilityResult<CapabilityResponse>
fn invoke_remote_owned( &self, peer: &PeerRecord, request: CapabilityRequest, ) -> CapabilityResult<CapabilityResponse>
Consumes one request when the caller can transfer its payload ownership. Read more
Auto Trait Implementations§
impl<C> Freeze for PeerRpcRemoteCapabilityInvoker<C>where
C: Freeze,
impl<C> RefUnwindSafe for PeerRpcRemoteCapabilityInvoker<C>where
C: RefUnwindSafe,
impl<C> Send for PeerRpcRemoteCapabilityInvoker<C>where
C: Send,
impl<C> Sync for PeerRpcRemoteCapabilityInvoker<C>where
C: Sync,
impl<C> Unpin for PeerRpcRemoteCapabilityInvoker<C>where
C: Unpin,
impl<C> UnsafeUnpin for PeerRpcRemoteCapabilityInvoker<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for PeerRpcRemoteCapabilityInvoker<C>where
C: UnwindSafe,
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