pub struct TarpcOverMessagesClient<C> {
handle: JoinHandle<Result<()>>,
client: C,
}Fields§
§handle: JoinHandle<Result<()>>§client: CImplementations§
Source§impl<C> TarpcOverMessagesClient<C>
impl<C> TarpcOverMessagesClient<C>
pub fn new<S, Req, Resp>( request_listener: S, signing_key: SigningKey, messages_service: MessagesService, target_public_key: VerifyingKey, client_maker: fn(UnboundedChannel<Response<Resp>, ClientMessage<Req>>) -> C, ) -> Self
pub fn new_with_mapper<S, Req, Resp, M, T>( request_listener: S, signing_key: SigningKey, messages_service: MessagesService, target_public_key: VerifyingKey, client_maker: fn(UnboundedChannel<Response<Resp>, ClientMessage<Req>>) -> C, mapper: M, ) -> Self
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if the bridge is still running
pub fn abort(&self)
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for TarpcOverMessagesClient<C>where
C: Freeze,
impl<C> RefUnwindSafe for TarpcOverMessagesClient<C>where
C: RefUnwindSafe,
impl<C> Send for TarpcOverMessagesClient<C>where
C: Send,
impl<C> Sync for TarpcOverMessagesClient<C>where
C: Sync,
impl<C> Unpin for TarpcOverMessagesClient<C>where
C: Unpin,
impl<C> UnwindSafe for TarpcOverMessagesClient<C>where
C: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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