Trait fidl::encoding::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

Object Safety§

This trait is not object safe.

Implementors§