Skip to main content

R6Violation

Enum R6Violation 

Source
pub enum R6Violation {
Show 13 variants MissingFromTo { performative: String, }, UndeclaredRole { performative: String, role: String, }, StrayAnnotation { performative: String, }, ChooserIncoherent { members: Vec<String>, }, NotCausallyLocal { performative: String, predecessor: String, role: String, }, UnreachableRole { role: String, }, MalformedRoles { detail: String, }, MalformedFromTo { performative: String, detail: String, }, MalformedCast { detail: String, }, UnknownRole { role: String, }, ArityMismatch { role: String, keys: usize, }, PerOccupantLocalityFailure { performative: String, occupant: String, }, DialectPinMismatch { pinned: String, installed: String, },
}
Expand description

R6 violation (CON-603): one variant per rejectable condition, each carrying the names needed to locate the defect.

Variants§

§

MissingFromTo

REQ-601: a protocol performative lacks :from or :to.

Fields

§performative: String
§

UndeclaredRole

REQ-602: :from/:to names a role absent from :roles.

Fields

§performative: String
§role: String
§

StrayAnnotation

REQ-602: :from/:to present while no :roles is declared.

Fields

§performative: String
§

ChooserIncoherent

REQ-603: a choice whose members do not share one sender role.

Fields

§members: Vec<String>
§

NotCausallyLocal

REQ-604: an endpoint role of performative is not an endpoint role of predecessor.

Fields

§performative: String
§predecessor: String
§role: String
§

UnreachableRole

REQ-605: a declared role unreachable from begin.

Fields

§role: String
§

MalformedRoles

CON-600: malformed :roles value.

Fields

§detail: String
§

MalformedFromTo

CON-600: malformed :from/:to value.

Fields

§performative: String
§detail: String
§

MalformedCast

CON-601: malformed with-roles bindings.

Fields

§detail: String
§

UnknownRole

CON-601: a cast binding names a role not declared in :roles.

Fields

§role: String
§

ArityMismatch

CON-601: a singleton role bound to a number of keys other than one.

Fields

§role: String
§keys: usize
§

PerOccupantLocalityFailure

REQ-608: per-occupant causal locality fails at occupant.

Fields

§performative: String
§occupant: String
§

DialectPinMismatch

REQ-628: the root’s :dialect pin differs from the installed dialect’s content hash.

Fields

§pinned: String
§installed: String

Trait Implementations§

Source§

impl Clone for R6Violation

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for R6Violation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for R6Violation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for R6Violation

Source§

impl PartialEq for R6Violation

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for R6Violation

Auto Trait Implementations§

§

impl Forget for R6Violation

§

impl Freeze for R6Violation

§

impl Move for R6Violation

§

impl RefUnwindSafe for R6Violation

§

impl Send for R6Violation
where RawVecInner: Send,

§

impl Sync for R6Violation
where RawVecInner: Sync,

§

impl Unpin for R6Violation
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for R6Violation

§

impl UnwindSafe for R6Violation
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.