pub struct DispatchDecision<'a> {
pub variant: &'a str,
pub reason: DispatchReason,
}Expand description
Allocation-free selection result for applications with a variant registry.
Fields§
§variant: &'a strVariant to execute; baseline must always be implemented by the caller.
reason: DispatchReasonWhy this variant was selected.
Trait Implementations§
Source§impl<'a> Clone for DispatchDecision<'a>
impl<'a> Clone for DispatchDecision<'a>
Source§fn clone(&self) -> DispatchDecision<'a>
fn clone(&self) -> DispatchDecision<'a>
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<'a> Copy for DispatchDecision<'a>
Source§impl<'a> Debug for DispatchDecision<'a>
impl<'a> Debug for DispatchDecision<'a>
Auto Trait Implementations§
impl<'a> Freeze for DispatchDecision<'a>
impl<'a> RefUnwindSafe for DispatchDecision<'a>
impl<'a> Send for DispatchDecision<'a>
impl<'a> Sync for DispatchDecision<'a>
impl<'a> Unpin for DispatchDecision<'a>
impl<'a> UnsafeUnpin for DispatchDecision<'a>
impl<'a> UnwindSafe for DispatchDecision<'a>
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