Struct drone_cortexm::fib::FiberProc [−][src]
Stackful fiber for FnMut
closure.
Can be created with fib::new_proc
,
fib::new_proc_unchecked
,
fib::new_proc_unprivileged
,
fib::new_proc_unprivileged_unchecked
.
Trait Implementations
impl<Sv, I, Y, R, F> Drop for FiberProc<Sv, I, Y, R, F> where
Sv: Switch<Data<I, FiberState<Y, R>>>,
F: FnMut(I, Yielder<Sv, I, Y, R>) -> R,
F: Send + 'static,
I: Send + 'static,
Y: Send + 'static,
R: Send + 'static,
[src]
Sv: Switch<Data<I, FiberState<Y, R>>>,
F: FnMut(I, Yielder<Sv, I, Y, R>) -> R,
F: Send + 'static,
I: Send + 'static,
Y: Send + 'static,
R: Send + 'static,
impl<Sv, I, Y, R, F> Fiber for FiberProc<Sv, I, Y, R, F> where
Sv: Switch<Data<I, FiberState<Y, R>>>,
F: FnMut(I, Yielder<Sv, I, Y, R>) -> R,
F: Send + 'static,
I: Send + 'static,
Y: Send + 'static,
R: Send + 'static,
[src]
Sv: Switch<Data<I, FiberState<Y, R>>>,
F: FnMut(I, Yielder<Sv, I, Y, R>) -> R,
F: Send + 'static,
I: Send + 'static,
Y: Send + 'static,
R: Send + 'static,
type Input = I
The type of value this fiber consumes on each resume
.
type Return = R
The type of value this fiber returns on completion.
type Yield = Y
The type of value this fiber yields.
fn resume(self: Pin<&mut Self>, input: I) -> FiberState<Y, R>
[src]
impl<Sv, F> RootFiber for FiberProc<Sv, (), (), (), F> where
Sv: Switch<Data<(), FiberState<(), ()>>>,
F: FnMut((), Yielder<Sv, (), (), ()>),
F: Send + 'static,
[src]
Sv: Switch<Data<(), FiberState<(), ()>>>,
F: FnMut((), Yielder<Sv, (), (), ()>),
F: Send + 'static,
impl<Sv, I, Y, R, F> Send for FiberProc<Sv, I, Y, R, F> where
Sv: Switch<Data<I, FiberState<Y, R>>>,
F: FnMut(I, Yielder<Sv, I, Y, R>) -> R,
F: Send + 'static,
I: Send + 'static,
Y: Send + 'static,
R: Send + 'static,
[src]
Sv: Switch<Data<I, FiberState<Y, R>>>,
F: FnMut(I, Yielder<Sv, I, Y, R>) -> R,
F: Send + 'static,
I: Send + 'static,
Y: Send + 'static,
R: Send + 'static,
impl<Sv, I, Y, R, F> Unpin for FiberProc<Sv, I, Y, R, F> where
Sv: Switch<Data<I, FiberState<Y, R>>>,
F: FnMut(I, Yielder<Sv, I, Y, R>) -> R,
F: Send + 'static,
I: Send + 'static,
Y: Send + 'static,
R: Send + 'static,
[src]
Sv: Switch<Data<I, FiberState<Y, R>>>,
F: FnMut(I, Yielder<Sv, I, Y, R>) -> R,
F: Send + 'static,
I: Send + 'static,
Y: Send + 'static,
R: Send + 'static,
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,