#[non_exhaustive]pub enum NotAttemptable {
SiteReturnsStreamAction,
SiteReturnsAction,
NoConstructor,
KindNotDefinedAtThisSite,
}Expand description
Why a Support::NotAttemptable cell cannot be reached.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SiteReturnsStreamAction
This site’s hook method returns
StreamAction, and kind names a
content action.
SiteReturnsAction
This site’s hook method returns Action,
and kind names a stream action.
NoConstructor
No value of Action or
StreamAction carries this kind to
this site, so nothing here can be attempted.
KindNotDefinedAtThisSite
The kind names a unit this site does not carry, so no value can bring it here even though the expression that would carry it is well-typed at this site under a different kind.
The only occupant is ActionKind::ReplaceObject at any
site but Site::Object: Action::Replace(b) typechecks at
Site::Control and Site::Datagram, but there it is the
ActionKind::Replace attempt — a control frame is not an
object. The accompanying refusal is
Refusal::WrongSite, the same refusal the attemptable
ReplaceObject × Object cell really emits, so a reader comparing
the table against a run sees one consistent answer.
Trait Implementations§
Source§impl Clone for NotAttemptable
impl Clone for NotAttemptable
Source§fn clone(&self) -> NotAttemptable
fn clone(&self) -> NotAttemptable
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more