Trait windows::Win32::Storage::Packaging::Opc::IOpcFactory_Impl

pub trait IOpcFactory_Impl: Sized {
    // 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: Option<&IStream>,
        flags: OPC_READ_FLAGS,
    ) -> Result<IOpcPackage>;
    fn WritePackageToStream(
        &self,
        package: Option<&IOpcPackage>,
        flags: OPC_WRITE_FLAGS,
        stream: Option<&IStream>,
    ) -> Result<()>;
    fn CreateDigitalSignatureManager(
        &self,
        package: Option<&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: Option<&IStream>, flags: OPC_READ_FLAGS, ) -> Result<IOpcPackage>

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

fn CreateDigitalSignatureManager( &self, package: Option<&IOpcPackage>, ) -> Result<IOpcDigitalSignatureManager>

Object Safety§

This trait is not object safe.

Implementors§