windows::Win32::System::RemoteDesktop

Trait IWRdsGraphicsChannelEvents_Impl

pub trait IWRdsGraphicsChannelEvents_Impl: IUnknownImpl {
    // Required methods
    fn OnDataReceived(&self, cbsize: u32, pbuffer: *const u8) -> Result<()>;
    fn OnClose(&self) -> Result<()>;
    fn OnChannelOpened(
        &self,
        openresult: HRESULT,
        popencontext: Ref<'_, IUnknown>,
    ) -> Result<()>;
    fn OnDataSent(
        &self,
        pwritecontext: Ref<'_, IUnknown>,
        bcancelled: BOOL,
        pbuffer: *const u8,
        cbbuffer: u32,
    ) -> Result<()>;
    fn OnMetricsUpdate(
        &self,
        bandwidth: u32,
        rtt: u32,
        lastsentbyteindex: u64,
    ) -> Result<()>;
}

Required Methods§

fn OnDataReceived(&self, cbsize: u32, pbuffer: *const u8) -> Result<()>

fn OnClose(&self) -> Result<()>

fn OnChannelOpened( &self, openresult: HRESULT, popencontext: Ref<'_, IUnknown>, ) -> Result<()>

fn OnDataSent( &self, pwritecontext: Ref<'_, IUnknown>, bcancelled: BOOL, pbuffer: *const u8, cbbuffer: u32, ) -> Result<()>

fn OnMetricsUpdate( &self, bandwidth: u32, rtt: u32, lastsentbyteindex: u64, ) -> Result<()>

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§