Struct gear_core::message::ContextOutcome
source · pub struct ContextOutcome { /* private fields */ }
Expand description
Context outcome.
Contains all outgoing messages and wakes that should be done after execution.
Implementations§
source§impl ContextOutcome
impl ContextOutcome
sourcepub fn drain(self) -> ContextOutcomeDrain
pub fn drain(self) -> ContextOutcomeDrain
Destructs outcome after execution and returns provided dispatches and awaken message ids.
Trait Implementations§
source§impl Debug for ContextOutcome
impl Debug for ContextOutcome
source§impl Decode for ContextOutcome
impl Decode for ContextOutcome
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl Default for ContextOutcome
impl Default for ContextOutcome
source§fn default() -> ContextOutcome
fn default() -> ContextOutcome
Returns the “default value” for a type. Read more
source§impl Encode for ContextOutcome
impl Encode for ContextOutcome
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl Hash for ContextOutcome
impl Hash for ContextOutcome
source§impl Ord for ContextOutcome
impl Ord for ContextOutcome
source§fn cmp(&self, other: &ContextOutcome) -> Ordering
fn cmp(&self, other: &ContextOutcome) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ContextOutcome
impl PartialEq for ContextOutcome
source§fn eq(&self, other: &ContextOutcome) -> bool
fn eq(&self, other: &ContextOutcome) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ContextOutcome
impl PartialOrd for ContextOutcome
source§fn partial_cmp(&self, other: &ContextOutcome) -> Option<Ordering>
fn partial_cmp(&self, other: &ContextOutcome) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeInfo for ContextOutcome
impl TypeInfo for ContextOutcome
impl EncodeLike for ContextOutcome
impl Eq for ContextOutcome
impl StructuralEq for ContextOutcome
impl StructuralPartialEq for ContextOutcome
Auto Trait Implementations§
impl RefUnwindSafe for ContextOutcome
impl Send for ContextOutcome
impl Sync for ContextOutcome
impl Unpin for ContextOutcome
impl UnwindSafe for ContextOutcome
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