Trait winsafe::prelude::ole_IPersistFile

source ·
pub trait ole_IPersistFile: ole_IUnknown {
    // Provided methods
    fn GetCurFile(&self) -> HrResult<String> { ... }
    fn IsDirty(&self) -> HrResult<bool> { ... }
    fn Load(&self, file_name: &str, dw_mode: STGM) -> HrResult<()> { ... }
    fn Save(&self, file_name: Option<&str>, remember: bool) -> HrResult<()> { ... }
    fn SaveCompleted(&self, file_name: &str) -> HrResult<()> { ... }
}
Available on crate features kernel and ole only.
Expand description

This trait is enabled with the ole feature, and provides methods for IPersistFile.

Prefer importing this trait through the prelude:

use winsafe::prelude::*;

Provided Methods§

source

fn GetCurFile(&self) -> HrResult<String>

source

fn IsDirty(&self) -> HrResult<bool>

source

fn Load(&self, file_name: &str, dw_mode: STGM) -> HrResult<()>

source

fn Save(&self, file_name: Option<&str>, remember: bool) -> HrResult<()>

source

fn SaveCompleted(&self, file_name: &str) -> HrResult<()>

Object Safety§

This trait is not object safe.

Implementors§