windows::Win32::Storage::Packaging::Opc

Trait IOpcFactory_Impl

pub trait IOpcFactory_Impl: IUnknownImpl {
    // Required methods
    fn CreatePackageRootUri(&self) -> Result<IOpcUri>;
    fn CreatePartUri(&self, pwzuri: &PCWSTR) -> Result<IOpcPartUri>;
    fn CreateStreamOnFile(
        &self,
        filename: &PCWSTR,
        iomode: OPC_STREAM_IO_MODE,
        securityattributes: *const SECURITY_ATTRIBUTES,
        dwflagsandattributes: u32,
    ) -> Result<IStream>;
    fn CreatePackage(&self) -> Result<IOpcPackage>;
    fn ReadPackageFromStream(
        &self,
        stream: Ref<'_, IStream>,
        flags: OPC_READ_FLAGS,
    ) -> Result<IOpcPackage>;
    fn WritePackageToStream(
        &self,
        package: Ref<'_, IOpcPackage>,
        flags: OPC_WRITE_FLAGS,
        stream: Ref<'_, IStream>,
    ) -> Result<()>;
    fn CreateDigitalSignatureManager(
        &self,
        package: Ref<'_, IOpcPackage>,
    ) -> Result<IOpcDigitalSignatureManager>;
}

Required Methods§

fn CreatePackageRootUri(&self) -> Result<IOpcUri>

fn CreatePartUri(&self, pwzuri: &PCWSTR) -> Result<IOpcPartUri>

fn CreateStreamOnFile( &self, filename: &PCWSTR, iomode: OPC_STREAM_IO_MODE, securityattributes: *const SECURITY_ATTRIBUTES, dwflagsandattributes: u32, ) -> Result<IStream>

fn CreatePackage(&self) -> Result<IOpcPackage>

fn ReadPackageFromStream( &self, stream: Ref<'_, IStream>, flags: OPC_READ_FLAGS, ) -> Result<IOpcPackage>

fn WritePackageToStream( &self, package: Ref<'_, IOpcPackage>, flags: OPC_WRITE_FLAGS, stream: Ref<'_, IStream>, ) -> Result<()>

fn CreateDigitalSignatureManager( &self, package: Ref<'_, IOpcPackage>, ) -> Result<IOpcDigitalSignatureManager>

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§