pub struct AssemblyError { /* private fields */ }Expand description
The complete assembly refusal.
Implementations§
Source§impl AssemblyError
impl AssemblyError
Sourcepub fn of(issue: AssemblyIssue) -> Self
pub fn of(issue: AssemblyIssue) -> Self
Builds a refusal from one issue.
Sourcepub fn over(first: AssemblyIssue, rest: Vec<AssemblyIssue>) -> Self
pub fn over(first: AssemblyIssue, rest: Vec<AssemblyIssue>) -> Self
Builds a refusal from a complete issue pass.
Sourcepub fn first_issue(&self) -> &AssemblyIssue
pub fn first_issue(&self) -> &AssemblyIssue
Reads the primary issue.
Sourcepub fn issues(&self) -> &NonEmpty<AssemblyIssue, ASSEMBLY_ISSUE_LIMIT>
pub fn issues(&self) -> &NonEmpty<AssemblyIssue, ASSEMBLY_ISSUE_LIMIT>
Reads every carried issue.
Trait Implementations§
Source§impl Clone for AssemblyError
impl Clone for AssemblyError
Source§fn clone(&self) -> AssemblyError
fn clone(&self) -> AssemblyError
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 AssemblyError
impl Debug for AssemblyError
Source§impl Display for AssemblyError
impl Display for AssemblyError
impl Eq for AssemblyError
Source§impl Error for AssemblyError
impl Error for AssemblyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Hash for AssemblyError
impl Hash for AssemblyError
Source§impl PartialEq for AssemblyError
impl PartialEq for AssemblyError
Source§impl Refused for AssemblyError
impl Refused for AssemblyError
Source§const FAMILY: Family = ASSEMBLY_FAMILY
const FAMILY: Family = ASSEMBLY_FAMILY
The family whose issue space this refusal’s related identities derive in. Read more
Source§fn class(&self) -> RefusalClass
fn class(&self) -> RefusalClass
Which class of refusal the summary line opens with.
Source§fn observed(&self) -> Observed
fn observed(&self) -> Observed
How what was observed differs from the expected contract, read off that same first issue.
One canonical byte string per issue established BEYOND the primary cause, in the order the body established them. Read more
impl StructuralPartialEq for AssemblyError
Auto Trait Implementations§
impl Freeze for AssemblyError
impl RefUnwindSafe for AssemblyError
impl Send for AssemblyError
impl Sync for AssemblyError
impl Unpin for AssemblyError
impl UnsafeUnpin for AssemblyError
impl UnwindSafe for AssemblyError
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