pub enum AsyncFamily {
ErrorContext,
Stream,
Future,
WaitableTask,
}Expand description
The async intrinsic families synth distinguishes (#80).
The lowered/declined decision is made PER OP (field name), not per family
— within error-context only .drop is a scalar handle op; .new and
.debug-message transfer a message string through linear memory (canonical
ABI) and are declined alongside the buffer families. See is_lowered_field.
Variants§
ErrorContext
error-context.* — error-context resource ops. Only .drop (scalar
handle) is lowered; .new / .debug-message are declined (linmem
message buffer, same class as stream).
Stream
stream.* — typed stream read/write over linear-memory buffers.
Declined (buffer memory layout + bounds checks unimplemented).
Future
future.* — single-shot readable/writable ends. Declined.
WaitableTask
waitable-set.* / task.* — scheduler yield points. Declined
(register save/restore across yield unimplemented).
Implementations§
Source§impl AsyncFamily
impl AsyncFamily
Sourcepub fn from_field(field: &str) -> Option<Self>
pub fn from_field(field: &str) -> Option<Self>
Classify an intrinsic field name into its family. Returns None for a
field name that is not a recognized P3-async intrinsic (an unknown
import in the async namespace — also a decline, see classify).
Matching is by the .-separated resource prefix, matching the RFC #46
resource.method naming (stream.read, error-context.new, …).
Trait Implementations§
Source§impl Clone for AsyncFamily
impl Clone for AsyncFamily
Source§fn clone(&self) -> AsyncFamily
fn clone(&self) -> AsyncFamily
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AsyncFamily
Source§impl Debug for AsyncFamily
impl Debug for AsyncFamily
impl Eq for AsyncFamily
Source§impl PartialEq for AsyncFamily
impl PartialEq for AsyncFamily
impl StructuralPartialEq for AsyncFamily
Auto Trait Implementations§
impl Freeze for AsyncFamily
impl RefUnwindSafe for AsyncFamily
impl Send for AsyncFamily
impl Sync for AsyncFamily
impl Unpin for AsyncFamily
impl UnsafeUnpin for AsyncFamily
impl UnwindSafe for AsyncFamily
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
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
key and return true if they are equal.