Trait winsafe::prelude::dshow_IEnumPins

source ·
pub trait dshow_IEnumPins: ole_IUnknown {
    // Provided methods
    fn iter(&self) -> impl Iterator<Item = HrResult<IPin>> + '_ { ... }
    fn Next(&self) -> HrResult<Option<IPin>> { ... }
    fn Reset(&self) -> HrResult<()> { ... }
    fn Skip(&self, count: u32) -> HrResult<bool> { ... }
}
Available on crate features kernel and dshow only.
Expand description

This trait is enabled with the dshow feature, and provides methods for IEnumPins.

Prefer importing this trait through the prelude:

use winsafe::prelude::*;

Provided Methods§

source

fn iter(&self) -> impl Iterator<Item = HrResult<IPin>> + '_

Returns an iterator over the IPin elements which calls IEnumPins::Next internally.

§Examples
use winsafe::{self as w, prelude::*};

let pins: w::IEnumPins; // initialized somewhere

for pin in pins.iter() {
    let pin = pin?;
    // ...
}
source

fn Next(&self) -> HrResult<Option<IPin>>

IEnumPins::Next method.

Prefer using IEnumPins::iter, which is simpler.

source

fn Reset(&self) -> HrResult<()>

source

fn Skip(&self, count: u32) -> HrResult<bool>

Object Safety§

This trait is not object safe.

Implementors§