#[repr(C)]pub union StepResultPayload {
pub pending: StbPending,
pub done: StbDone,
pub err: StbErr,
}Expand description
The poll() return value. Read the payload variant matching tag.
All payload variants are #[repr(C)] structs of StbString (Copy), so the
union is Copy. A wrong-variant read is unsafe; always match on tag.
Fields§
§pending: StbPending§done: StbDone§err: StbErrTrait Implementations§
Source§impl Clone for StepResultPayload
impl Clone for StepResultPayload
Source§fn clone(&self) -> StepResultPayload
fn clone(&self) -> StepResultPayload
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 Copy for StepResultPayload
Auto Trait Implementations§
impl Freeze for StepResultPayload
impl RefUnwindSafe for StepResultPayload
impl Send for StepResultPayload
impl Sync for StepResultPayload
impl Unpin for StepResultPayload
impl UnsafeUnpin for StepResultPayload
impl UnwindSafe for StepResultPayload
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