pub enum ResumePacket<T, E> {
Start,
Send(T),
Throw(E),
Close,
}Expand description
Input delivered when a frame is resumed.
Variants§
Start
Start a frame that has not run before.
Send(T)
Send a value into a suspended frame.
Throw(E)
Throw an error into a suspended frame.
Close
Ask a suspended frame to close and run its cleanup.
Trait Implementations§
Source§impl<T: Clone, E: Clone> Clone for ResumePacket<T, E>
impl<T: Clone, E: Clone> Clone for ResumePacket<T, E>
Source§fn clone(&self) -> ResumePacket<T, E>
fn clone(&self) -> ResumePacket<T, E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Eq, E: Eq> Eq for ResumePacket<T, E>
impl<T: PartialEq, E: PartialEq> StructuralPartialEq for ResumePacket<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for ResumePacket<T, E>
impl<T, E> RefUnwindSafe for ResumePacket<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for ResumePacket<T, E>
impl<T, E> Sync for ResumePacket<T, E>
impl<T, E> Unpin for ResumePacket<T, E>
impl<T, E> UnsafeUnpin for ResumePacket<T, E>where
T: UnsafeUnpin,
E: UnsafeUnpin,
impl<T, E> UnwindSafe for ResumePacket<T, E>where
T: UnwindSafe,
E: 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