Trait ConnectionExt

Source
pub trait ConnectionExt: RequestConnection {
    // Provided methods
    fn dpms_get_version(
        &self,
        client_major_version: u16,
        client_minor_version: u16,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetVersionReply>, ConnectionError>> + Send + '_>> { ... }
    fn dpms_capable(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CapableReply>, ConnectionError>> + Send + '_>> { ... }
    fn dpms_get_timeouts(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetTimeoutsReply>, ConnectionError>> + Send + '_>> { ... }
    fn dpms_set_timeouts(
        &self,
        standby_timeout: u16,
        suspend_timeout: u16,
        off_timeout: u16,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn dpms_enable(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn dpms_disable(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn dpms_force_level(
        &self,
        power_level: DPMSMode,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn dpms_info(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, InfoReply>, ConnectionError>> + Send + '_>> { ... }
    fn dpms_select_input(
        &self,
        event_mask: EventMask,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
}
Expand description

Extension trait defining the requests of this extension.

Provided Methods§

Source

fn dpms_get_version( &self, client_major_version: u16, client_minor_version: u16, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetVersionReply>, ConnectionError>> + Send + '_>>

Source

fn dpms_capable( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CapableReply>, ConnectionError>> + Send + '_>>

Source

fn dpms_get_timeouts( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetTimeoutsReply>, ConnectionError>> + Send + '_>>

Source

fn dpms_set_timeouts( &self, standby_timeout: u16, suspend_timeout: u16, off_timeout: u16, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>

Source

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

Source

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

Source

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

Source

fn dpms_info( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, InfoReply>, ConnectionError>> + Send + '_>>

Source

fn dpms_select_input( &self, event_mask: EventMask, ) -> 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§