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§
sourcefn iter(&self) -> impl Iterator<Item = HrResult<IPin>> + '_
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?;
// ...
}
sourcefn Next(&self) -> HrResult<Option<IPin>>
fn Next(&self) -> HrResult<Option<IPin>>
IEnumPins::Next
method.
Prefer using
IEnumPins::iter
, which
is simpler.
sourcefn Reset(&self) -> HrResult<()>
fn Reset(&self) -> HrResult<()>
IEnumPins::Reset
method.
Object Safety§
This trait is not object safe.