pub trait ServiceRole:
Debug
+ Send
+ Sync
+ 'static
+ Copy
+ Clone {
type Req: TransferObject + GetMeta<Metadata = RequestMetaObject> + GetExtensions;
type Resp: TransferObject;
type Not: TryInto<CancelledNotification, Error = Self::Not> + From<CancelledNotification> + TransferObject;
type PeerReq: TransferObject + GetMeta<Metadata = RequestMetaObject> + GetExtensions;
type PeerResp: TransferObject;
type PeerNot: TryInto<CancelledNotification, Error = Self::PeerNot> + From<CancelledNotification> + TransferObject + GetMeta<Metadata = NotificationMetaObject> + GetExtensions;
type InitializeError;
type Info: TransferObject;
type PeerInfo: TransferObject;
const IS_CLIENT: bool;
}Available on crate features
client or server only.Required Associated Constants§
Required Associated Types§
type Req: TransferObject + GetMeta<Metadata = RequestMetaObject> + GetExtensions
type Resp: TransferObject
type Not: TryInto<CancelledNotification, Error = Self::Not> + From<CancelledNotification> + TransferObject
type PeerReq: TransferObject + GetMeta<Metadata = RequestMetaObject> + GetExtensions
type PeerResp: TransferObject
type PeerNot: TryInto<CancelledNotification, Error = Self::PeerNot> + From<CancelledNotification> + TransferObject + GetMeta<Metadata = NotificationMetaObject> + GetExtensions
type InitializeError
type Info: TransferObject
type PeerInfo: TransferObject
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl ServiceRole for RoleClient
Available on crate feature client only.
impl ServiceRole for RoleClient
Available on crate feature
client only.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 = InitializeRequestParams
type PeerInfo = ServerPeerInfo
type InitializeError = ClientInitializeError
Source§impl ServiceRole for RoleServer
Available on crate feature server only.
impl ServiceRole for RoleServer
Available on crate feature
server only.