windows::Win32::Media::Speech

Trait ISpeechBaseStream_Impl

pub trait ISpeechBaseStream_Impl: IDispatch_Impl {
    // Required methods
    fn Format(&self) -> Result<ISpeechAudioFormat>;
    fn putref_Format(
        &self,
        audioformat: Ref<'_, ISpeechAudioFormat>,
    ) -> Result<()>;
    fn Read(
        &self,
        buffer: *mut VARIANT,
        numberofbytes: i32,
        bytesread: *mut i32,
    ) -> Result<()>;
    fn Write(&self, buffer: &VARIANT) -> Result<i32>;
    fn Seek(
        &self,
        position: &VARIANT,
        origin: SpeechStreamSeekPositionType,
    ) -> Result<VARIANT>;
}

Required Methods§

fn Format(&self) -> Result<ISpeechAudioFormat>

fn putref_Format(&self, audioformat: Ref<'_, ISpeechAudioFormat>) -> Result<()>

fn Read( &self, buffer: *mut VARIANT, numberofbytes: i32, bytesread: *mut i32, ) -> Result<()>

fn Write(&self, buffer: &VARIANT) -> Result<i32>

fn Seek( &self, position: &VARIANT, origin: SpeechStreamSeekPositionType, ) -> Result<VARIANT>

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§