pub struct IterHandle<T> { /* private fields */ }Expand description
The opaque iterator handle a launcher returns ({prefix}_..._Iterator*
in C).
The handle never holds its lock while the producer’s next runs: _next
takes the iterator out, advances it, and puts it back. A _next that
arrives while another is advancing the same handle (from another thread,
or re-entrantly from inside the producer’s next) fails with
MARSHAL_ERROR_CODE instead of blocking, so no misuse can deadlock.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for IterHandle<T>
impl<T> RefUnwindSafe for IterHandle<T>
impl<T> Send for IterHandle<T>
impl<T> Sync for IterHandle<T>
impl<T> Unpin for IterHandle<T>
impl<T> UnsafeUnpin for IterHandle<T>
impl<T> UnwindSafe for IterHandle<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more