Skip to main content

MappingSessionProxyInterface

Trait MappingSessionProxyInterface 

Source
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§

Required Methods§

Source

fn open(&self, key: u64, identifier: &[u8]) -> Self::OpenResponseFut

Source

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".

Implementors§