ConnectionExt

Trait ConnectionExt 

Source
pub trait ConnectionExt: RequestConnection {
    // Provided methods
    fn record_query_version(
        &self,
        major_version: u16,
        minor_version: u16,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
    fn record_create_context<'c, 'input, 'future>(
        &'c self,
        context: Context,
        element_header: ElementHeader,
        client_specs: &'input [ClientSpec],
        ranges: &'input [Range],
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
       where 'c: 'future,
             'input: 'future { ... }
    fn record_register_clients<'c, 'input, 'future>(
        &'c self,
        context: Context,
        element_header: ElementHeader,
        client_specs: &'input [ClientSpec],
        ranges: &'input [Range],
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
       where 'c: 'future,
             'input: 'future { ... }
    fn record_unregister_clients<'c, 'input, 'future>(
        &'c self,
        context: Context,
        client_specs: &'input [ClientSpec],
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
       where 'c: 'future,
             'input: 'future { ... }
    fn record_get_context(
        &self,
        context: Context,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetContextReply>, ConnectionError>> + Send + '_>> { ... }
    fn record_enable_context(
        &self,
        context: Context,
    ) -> Pin<Box<dyn Future<Output = Result<RecordEnableContextCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn record_disable_context(
        &self,
        context: Context,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn record_free_context(
        &self,
        context: Context,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
}
Expand description

Extension trait defining the requests of this extension.

Provided Methods§

Source

fn record_query_version( &self, major_version: u16, minor_version: u16, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>

Source

fn record_create_context<'c, 'input, 'future>( &'c self, context: Context, element_header: ElementHeader, client_specs: &'input [ClientSpec], ranges: &'input [Range], ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future, 'input: 'future,

Source

fn record_register_clients<'c, 'input, 'future>( &'c self, context: Context, element_header: ElementHeader, client_specs: &'input [ClientSpec], ranges: &'input [Range], ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future, 'input: 'future,

Source

fn record_unregister_clients<'c, 'input, 'future>( &'c self, context: Context, client_specs: &'input [ClientSpec], ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future, 'input: 'future,

Source

fn record_get_context( &self, context: Context, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetContextReply>, ConnectionError>> + Send + '_>>

Source

fn record_enable_context( &self, context: Context, ) -> Pin<Box<dyn Future<Output = Result<RecordEnableContextCookie<'_, Self>, ConnectionError>> + Send + '_>>

Source

fn record_disable_context( &self, context: Context, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>

Source

fn record_free_context( &self, context: Context, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§