Skip to main content

ConnectChannelRequest

Trait ConnectChannelRequest 

Source
pub trait ConnectChannelRequest: Serialize {
    type Incoming: DeserializeOwned + 'static;
    type Outgoing: Serialize + 'static;

    const NAME: &'static str;
}
Expand description

Request to connect to the channel.

It’s similar to Request but for connecting to a channel.

Required Associated Constants§

Source

const NAME: &'static str

The name of the channel to be connected by this request.

Required Associated Types§

Source

type Incoming: DeserializeOwned + 'static

Type of the data we receive from the channel.

Source

type Outgoing: Serialize + 'static

Type of the data we send to the channel.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<R> ConnectChannelRequest for &R

Source§

impl<R> ConnectChannelRequest for &mut R

Source§

impl<R> ConnectChannelRequest for Box<R>

Implementors§