pub enum AsyncClassification {
NotAsync,
Lowered {
family: AsyncFamily,
field: String,
},
Declined(AsyncDecline),
}Expand description
The outcome of classifying a single import against the async contract.
Variants§
NotAsync
Not a P3-async import (wrong module namespace). Untouched by #80.
Lowered
A P3-async import in a family synth lowers. The call flows through the
existing field-name BL path unchanged; the carried field is the
symbol name that path relocates against.
Fields
§
family: AsyncFamilyThe lowered family (always AsyncFamily::ErrorContext today).
Declined(AsyncDecline)
A P3-async import synth refuses to compile (a declined family or an unknown async intrinsic).
Trait Implementations§
Source§impl Clone for AsyncClassification
impl Clone for AsyncClassification
Source§fn clone(&self) -> AsyncClassification
fn clone(&self) -> AsyncClassification
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 moreSource§impl Debug for AsyncClassification
impl Debug for AsyncClassification
impl Eq for AsyncClassification
Source§impl PartialEq for AsyncClassification
impl PartialEq for AsyncClassification
impl StructuralPartialEq for AsyncClassification
Auto Trait Implementations§
impl Freeze for AsyncClassification
impl RefUnwindSafe for AsyncClassification
impl Send for AsyncClassification
impl Sync for AsyncClassification
impl Unpin for AsyncClassification
impl UnsafeUnpin for AsyncClassification
impl UnwindSafe for AsyncClassification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.