Trait IFileIo_Impl
pub trait IFileIo_Impl: IUnknownImpl {
// Required methods
fn Initialize(
&self,
eaccessmode: FILE_ACCESSMODE,
eopenmode: FILE_OPENMODE,
pwszfilename: &PCWSTR,
) -> Result<()>;
fn GetLength(&self, pqwlength: *mut u64) -> Result<()>;
fn SetLength(&self, qwlength: u64) -> Result<()>;
fn GetCurrentPosition(&self, pqwposition: *mut u64) -> Result<()>;
fn SetCurrentPosition(&self, qwposition: u64) -> Result<()>;
fn IsEndOfStream(&self, pbendofstream: *mut BOOL) -> Result<()>;
fn Read(&self, pbt: *mut u8, ul: u32, pulread: *mut u32) -> Result<()>;
fn Write(&self, pbt: *mut u8, ul: u32, pulwritten: *mut u32) -> Result<()>;
fn Seek(
&self,
eseekorigin: SEEK_ORIGIN,
qwseekoffset: u64,
dwseekflags: u32,
pqwcurrentposition: *mut u64,
) -> Result<()>;
fn Close(&self) -> Result<()>;
}
Required Methods§
fn Initialize( &self, eaccessmode: FILE_ACCESSMODE, eopenmode: FILE_OPENMODE, pwszfilename: &PCWSTR, ) -> Result<()>
fn GetLength(&self, pqwlength: *mut u64) -> Result<()>
fn SetLength(&self, qwlength: u64) -> Result<()>
fn GetCurrentPosition(&self, pqwposition: *mut u64) -> Result<()>
fn SetCurrentPosition(&self, qwposition: u64) -> Result<()>
fn IsEndOfStream(&self, pbendofstream: *mut BOOL) -> Result<()>
fn Read(&self, pbt: *mut u8, ul: u32, pulread: *mut u32) -> Result<()>
fn Write(&self, pbt: *mut u8, ul: u32, pulwritten: *mut u32) -> Result<()>
fn Seek( &self, eseekorigin: SEEK_ORIGIN, qwseekoffset: u64, dwseekflags: u32, pqwcurrentposition: *mut u64, ) -> Result<()>
fn Close(&self) -> 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.