pub struct ClientDispatcher<P, T: Transport = <P as HasTransport>::Transport> { /* private fields */ }Expand description
A strongly typed client dispatcher.
Implementations§
Source§impl<P, T: Transport> ClientDispatcher<P, T>
 
impl<P, T: Transport> ClientDispatcher<P, T>
Sourcepub fn from_untyped(dispatcher: ClientDispatcher<T>) -> Self
 
pub fn from_untyped(dispatcher: ClientDispatcher<T>) -> Self
Creates a new client from an untyped client.
Sourcepub async fn run<H>(self, handler: H) -> Result<H, ProtocolError<T::Error>>where
    P: DispatchClientMessage<H, T>,
 
pub async fn run<H>(self, handler: H) -> Result<H, ProtocolError<T::Error>>where
    P: DispatchClientMessage<H, T>,
Runs the client with the provided handler.
Sourcepub async fn run_client(self) -> Result<(), ProtocolError<T::Error>>where
    P: DispatchClientMessage<IgnoreEvents, T>,
 
pub async fn run_client(self) -> Result<(), ProtocolError<T::Error>>where
    P: DispatchClientMessage<IgnoreEvents, T>,
Runs the client, ignoring any incoming events.
Trait Implementations§
Source§impl<T, P> CompatFrom<T> for ClientDispatcher<P, Channel>where
    P: ClientCompatFrom<T>,
Available on crate feature fuchsia only. 
impl<T, P> CompatFrom<T> for ClientDispatcher<P, Channel>where
    P: ClientCompatFrom<T>,
Available on crate feature 
fuchsia only.Source§fn compat_from(value: T) -> Self
 
fn compat_from(value: T) -> Self
Converts 
value into a value of this type.impl<P, T> Send for ClientDispatcher<P, T>
Auto Trait Implementations§
impl<P, T> Freeze for ClientDispatcher<P, T>
impl<P, T = <P as HasTransport>::Transport> !RefUnwindSafe for ClientDispatcher<P, T>
impl<P, T> Sync for ClientDispatcher<P, T>
impl<P, T> Unpin for ClientDispatcher<P, T>
impl<P, T = <P as HasTransport>::Transport> !UnwindSafe for ClientDispatcher<P, T>
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
Source§impl<T> InstanceFromServiceTransport<T> for T
 
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
 
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type 
T to Self