windows::Win32::Data::Xml::MsXml

Trait IXMLHTTPRequest2Callback_Impl

pub trait IXMLHTTPRequest2Callback_Impl: IUnknownImpl {
    // Required methods
    fn OnRedirect(
        &self,
        pxhr: Ref<'_, IXMLHTTPRequest2>,
        pwszredirecturl: &PCWSTR,
    ) -> Result<()>;
    fn OnHeadersAvailable(
        &self,
        pxhr: Ref<'_, IXMLHTTPRequest2>,
        dwstatus: u32,
        pwszstatus: &PCWSTR,
    ) -> Result<()>;
    fn OnDataAvailable(
        &self,
        pxhr: Ref<'_, IXMLHTTPRequest2>,
        presponsestream: Ref<'_, ISequentialStream>,
    ) -> Result<()>;
    fn OnResponseReceived(
        &self,
        pxhr: Ref<'_, IXMLHTTPRequest2>,
        presponsestream: Ref<'_, ISequentialStream>,
    ) -> Result<()>;
    fn OnError(
        &self,
        pxhr: Ref<'_, IXMLHTTPRequest2>,
        hrerror: HRESULT,
    ) -> Result<()>;
}

Required Methods§

fn OnRedirect( &self, pxhr: Ref<'_, IXMLHTTPRequest2>, pwszredirecturl: &PCWSTR, ) -> Result<()>

fn OnHeadersAvailable( &self, pxhr: Ref<'_, IXMLHTTPRequest2>, dwstatus: u32, pwszstatus: &PCWSTR, ) -> Result<()>

fn OnDataAvailable( &self, pxhr: Ref<'_, IXMLHTTPRequest2>, presponsestream: Ref<'_, ISequentialStream>, ) -> Result<()>

fn OnResponseReceived( &self, pxhr: Ref<'_, IXMLHTTPRequest2>, presponsestream: Ref<'_, ISequentialStream>, ) -> Result<()>

fn OnError( &self, pxhr: Ref<'_, IXMLHTTPRequest2>, hrerror: HRESULT, ) -> 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§