Skip to main content

ServiceRole

Trait ServiceRole 

Source
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§

Source

type Req: TransferObject + GetMeta<Metadata = RequestMetaObject> + GetExtensions

Source

type Resp: TransferObject

Source

type Not: TryInto<CancelledNotification, Error = Self::Not> + From<CancelledNotification> + TransferObject

Source

type PeerReq: TransferObject + GetMeta<Metadata = RequestMetaObject> + GetExtensions

Source

type PeerResp: TransferObject

Source

type PeerNot: TryInto<CancelledNotification, Error = Self::PeerNot> + From<CancelledNotification> + TransferObject + GetMeta<Metadata = NotificationMetaObject> + GetExtensions

Source

type InitializeError

Source

type Info: TransferObject

Source

type PeerInfo: TransferObject

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§