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§
sourcetype MessageBufEtc: MessageBufFor<Self>
type MessageBufEtc: MessageBufFor<Self>
Message buffer type used in this dialect.
sourcetype ProxyChannel: ProxyChannelFor<Self>
type ProxyChannel: ProxyChannelFor<Self>
Channel type used for proxies in this dialect.
Required Methods§
sourcefn with_tls_buf<R>(f: impl FnOnce(&mut TlsBuf<Self>) -> R) -> R
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.