pub trait MappingSessionProxyInterface: Send + Sync {
type OpenResponseFut: Future<Output = Result<MappingSessionOpenResult, Error>> + Send;
type CloseResponseFut: Future<Output = Result<MappingSessionCloseResult, Error>> + Send;
// Required methods
fn open(&self, key: u64, identifier: &[u8]) -> Self::OpenResponseFut;
fn close(&self, key: u64) -> Self::CloseResponseFut;
}Required Associated Types§
type OpenResponseFut: Future<Output = Result<MappingSessionOpenResult, Error>> + Send
type CloseResponseFut: Future<Output = Result<MappingSessionCloseResult, Error>> + Send
Required Methods§
fn open(&self, key: u64, identifier: &[u8]) -> Self::OpenResponseFut
fn close(&self, key: u64) -> Self::CloseResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".