fidl::encoding

Trait ResourceDialect

Source
pub trait ResourceDialect:
    'static
    + Sized
    + 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", so this trait is not object safe.

Implementors§