pub struct RoleClient;Available on (crate features
client or server) and crate feature client only.Trait Implementations§
Source§impl Clone for RoleClient
impl Clone for RoleClient
Source§fn clone(&self) -> RoleClient
fn clone(&self) -> RoleClient
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 moreSource§impl Debug for RoleClient
impl Debug for RoleClient
Source§impl Default for RoleClient
impl Default for RoleClient
Source§fn default() -> RoleClient
fn default() -> RoleClient
Returns the “default value” for a type. Read more
Source§impl PartialEq for RoleClient
impl PartialEq for RoleClient
Source§impl ServiceRole for RoleClient
impl ServiceRole for RoleClient
const IS_CLIENT: bool = true
type Req = ClientRequest
type Resp = ClientResult
type Not = ClientNotification
type PeerReq = ServerRequest
type PeerResp = ServerResult
type PeerNot = ServerNotification
type Info = InitializeRequestParam
type PeerInfo = InitializeResult
type InitializeError = ClientInitializeError
Source§impl Transport<RoleClient> for TokioChildProcess
Available on crate feature transport-child-process only.
impl Transport<RoleClient> for TokioChildProcess
Available on crate feature
transport-child-process only.type Error = Error
Source§fn send(
&mut self,
item: TxJsonRpcMessage<RoleClient>,
) -> impl Future<Output = Result<(), Self::Error>> + Send + 'static
fn send( &mut self, item: TxJsonRpcMessage<RoleClient>, ) -> impl Future<Output = Result<(), Self::Error>> + Send + 'static
Send a message to the transport Read more
Source§fn receive(
&mut self,
) -> impl Future<Output = Option<RxJsonRpcMessage<RoleClient>>> + Send
fn receive( &mut self, ) -> impl Future<Output = Option<RxJsonRpcMessage<RoleClient>>> + Send
Receive a message from the transport, this operation is sequential.
Source§fn close(&mut self) -> impl Future<Output = Result<(), Self::Error>> + Send
fn close(&mut self) -> impl Future<Output = Result<(), Self::Error>> + Send
Close the transport
fn name() -> Cow<'static, str>
impl Copy for RoleClient
impl Eq for RoleClient
impl StructuralPartialEq for RoleClient
Auto Trait Implementations§
impl Freeze for RoleClient
impl RefUnwindSafe for RoleClient
impl Send for RoleClient
impl Sync for RoleClient
impl Unpin for RoleClient
impl UnwindSafe for RoleClient
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<H> Service<RoleClient> for Hwhere
H: ClientHandler,
impl<H> Service<RoleClient> for Hwhere
H: ClientHandler,
Source§async fn handle_request(
&self,
request: <RoleClient as ServiceRole>::PeerReq,
context: RequestContext<RoleClient>,
) -> Result<<RoleClient as ServiceRole>::Resp, ErrorData>
async fn handle_request( &self, request: <RoleClient as ServiceRole>::PeerReq, context: RequestContext<RoleClient>, ) -> Result<<RoleClient as ServiceRole>::Resp, ErrorData>
Available on crate features
client or server only.Source§async fn handle_notification(
&self,
notification: <RoleClient as ServiceRole>::PeerNot,
context: NotificationContext<RoleClient>,
) -> Result<(), ErrorData>
async fn handle_notification( &self, notification: <RoleClient as ServiceRole>::PeerNot, context: NotificationContext<RoleClient>, ) -> Result<(), ErrorData>
Available on crate features
client or server only.Source§fn get_info(&self) -> <RoleClient as ServiceRole>::Info
fn get_info(&self) -> <RoleClient as ServiceRole>::Info
Available on crate features
client or server only.Source§impl<S> ServiceExt<RoleClient> for Swhere
S: Service<RoleClient>,
impl<S> ServiceExt<RoleClient> for Swhere
S: Service<RoleClient>,
Source§fn serve_with_ct<T, E, A>(
self,
transport: T,
ct: CancellationToken,
) -> impl Future<Output = Result<RunningService<RoleClient, S>, ClientInitializeError>> + Send
fn serve_with_ct<T, E, A>( self, transport: T, ct: CancellationToken, ) -> impl Future<Output = Result<RunningService<RoleClient, S>, ClientInitializeError>> + Send
Available on crate features
client or server only.Source§fn into_dyn(self) -> Box<dyn DynService<R>>
fn into_dyn(self) -> Box<dyn DynService<R>>
Available on crate features
client or server only.Convert this service to a dynamic boxed service Read more
Source§fn serve<T, E, A>(
self,
transport: T,
) -> impl Future<Output = Result<RunningService<R, Self>, R::InitializeError>> + Send
fn serve<T, E, A>( self, transport: T, ) -> impl Future<Output = Result<RunningService<R, Self>, R::InitializeError>> + Send
Available on crate features
client or server only.