Struct drone_cortexm::proc_loop::Fiber [−][src]
A wrapper for fib::FiberProc
that runs the command loop T
.
Implementations
impl<Sv, T> Fiber<Sv, T> where
Sv: SvCall<SwitchBackService>,
Sv: SvCall<SwitchContextService>,
T: ProcLoop<Context = Yielder<Sv, T>>,
[src]
Sv: SvCall<SwitchBackService>,
Sv: SvCall<SwitchContextService>,
T: ProcLoop<Context = Yielder<Sv, T>>,
pub fn new() -> Self
[src]
pub unsafe fn new_unchecked() -> Self
[src]
Trait Implementations
impl<Sv, T> Drop for Fiber<Sv, T> where
Sv: SvCall<SwitchBackService>,
Sv: SvCall<SwitchContextService>,
T: ProcLoop<Context = Yielder<Sv, T>>,
[src]
Sv: SvCall<SwitchBackService>,
Sv: SvCall<SwitchContextService>,
T: ProcLoop<Context = Yielder<Sv, T>>,
impl<Sv, T> Fiber for Fiber<Sv, T> where
Sv: SvCall<SwitchBackService>,
Sv: SvCall<SwitchContextService>,
T: ProcLoop<Context = Yielder<Sv, T>>,
[src]
Sv: SvCall<SwitchBackService>,
Sv: SvCall<SwitchContextService>,
T: ProcLoop<Context = Yielder<Sv, T>>,
type Input = In<<T as ProcLoop>::Cmd, <T as ProcLoop>::ReqRes>
The type of value this fiber consumes on each resume
.
type Return = !
The type of value this fiber returns on completion.
type Yield = Out<<T as ProcLoop>::Req, <T as ProcLoop>::CmdRes>
The type of value this fiber yields.
fn resume(
self: Pin<&mut Self>,
input: In<<T as ProcLoop>::Cmd, <T as ProcLoop>::ReqRes>
) -> FiberState<Out<<T as ProcLoop>::Req, <T as ProcLoop>::CmdRes>, !>
[src]
self: Pin<&mut Self>,
input: In<<T as ProcLoop>::Cmd, <T as ProcLoop>::ReqRes>
) -> FiberState<Out<<T as ProcLoop>::Req, <T as ProcLoop>::CmdRes>, !>
Auto Trait Implementations
impl<Sv, T> Send for Fiber<Sv, T>
impl<Sv, T> !Sync for Fiber<Sv, T>
impl<Sv, T> Unpin for Fiber<Sv, T>
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>,