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;
    type GetProfileResponseFut: Future<Output = Result<MappingSessionGetProfileResult, Error>> + Send;
    type WriteProfileResponseFut: Future<Output = Result<MappingSessionWriteProfileResult, Error>> + Send;

    // Required methods
    fn open(&self, key: u64, identifier: &[u8]) -> Self::OpenResponseFut;
    fn close(&self, key: u64) -> Self::CloseResponseFut;
    fn get_profile(&self, name: &str) -> Self::GetProfileResponseFut;
    fn write_profile(
        &self,
        name: &str,
        profile_vmo: Vmo,
    ) -> Self::WriteProfileResponseFut;
}

Required Associated Types§

Required Methods§

Source

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

Source

fn close(&self, key: u64) -> Self::CloseResponseFut

Source

fn get_profile(&self, name: &str) -> Self::GetProfileResponseFut

Source

fn write_profile( &self, name: &str, profile_vmo: Vmo, ) -> Self::WriteProfileResponseFut

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§