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 + '_>>

Object Safety§

This trait is not object safe.

Implementors§