Skip to main content

ResourceDialect

Trait ResourceDialect 

Source
pub trait ResourceDialect:
    Sized
    + 'static
    + Default
    + Debug
    + Copy
    + Clone {
    type Handle: HandleFor<Self>;
    type MessageBufEtc: MessageBufFor<Self>;
    type ProxyChannel: ProxyChannelFor<Self>;

    // Required method
    fn with_tls_buf<R>(f: impl FnOnce(&mut TlsBuf<Self>) -> R) -> R;
}
Expand description

Describes how a given transport encodes resources like handles.

Required Associated Types§

Source

type Handle: HandleFor<Self>

Handle type used in this dialect.

Source

type MessageBufEtc: MessageBufFor<Self>

Message buffer type used in this dialect.

Source

type ProxyChannel: ProxyChannelFor<Self>

Channel type used for proxies in this dialect.

Required Methods§

Source

fn with_tls_buf<R>(f: impl FnOnce(&mut TlsBuf<Self>) -> R) -> R

Get a thread-local common instance of TlsBuf

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§