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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".