pub enum AmendmentError {
UnsupportedVersion(u32),
MissingRedaction,
UnexpectedRedaction,
UnknownTarget(GovernanceLogId),
ForwardReference(GovernanceLogId),
WrongTargetHash(GovernanceLogId),
}Expand description
An amendment is malformed
Variants§
UnsupportedVersion(u32)
MissingRedaction
UnexpectedRedaction
UnknownTarget(GovernanceLogId)
ForwardReference(GovernanceLogId)
WrongTargetHash(GovernanceLogId)
Trait Implementations§
Source§impl Clone for AmendmentError
impl Clone for AmendmentError
Source§fn clone(&self) -> AmendmentError
fn clone(&self) -> AmendmentError
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 AmendmentError
impl Debug for AmendmentError
Source§impl Display for AmendmentError
impl Display for AmendmentError
impl Eq for AmendmentError
Source§impl Error for AmendmentError
impl Error for AmendmentError
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 PartialEq for AmendmentError
impl PartialEq for AmendmentError
impl StructuralPartialEq for AmendmentError
Auto Trait Implementations§
impl Freeze for AmendmentError
impl RefUnwindSafe for AmendmentError
impl Send for AmendmentError
impl Sync for AmendmentError
impl Unpin for AmendmentError
impl UnsafeUnpin for AmendmentError
impl UnwindSafe for AmendmentError
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