pub enum FsmResult<M, R> {
Continue(M),
Done(R),
}
Expand description
Indicates whether or not the state machine has completed its work
Variants§
Continue(M)
The I/O loop needs to continue, the state machine is given back.
Done(R)
The state machine is done, and the result is returned.
Auto Trait Implementations§
impl<M, R> Freeze for FsmResult<M, R>
impl<M, R> RefUnwindSafe for FsmResult<M, R>where
M: RefUnwindSafe,
R: RefUnwindSafe,
impl<M, R> Send for FsmResult<M, R>
impl<M, R> Sync for FsmResult<M, R>
impl<M, R> Unpin for FsmResult<M, R>
impl<M, R> UnwindSafe for FsmResult<M, R>where
M: UnwindSafe,
R: UnwindSafe,
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