pub enum ValidateError {
DecodeParams(String),
DecodeState(String),
InvalidSignature(&'static str),
NonOwnerSigner,
FieldTooLong {
field: &'static str,
len: usize,
max: usize,
},
BundleIdMismatch,
NonMonotonic(&'static str),
InvalidPrefixLength {
len: usize,
min: usize,
max: usize,
},
PrefixMismatch {
expected: String,
actual: String,
},
InvalidPrefixChars,
}Expand description
Errors validate_state can surface. The string variants carry diagnostic
detail; treat the variant as the machine-readable signal.
Variants§
DecodeParams(String)
Could not decode the parameters bytes.
DecodeState(String)
Could not decode the state bytes.
InvalidSignature(&'static str)
A signed field’s signature did not verify against its claimed signer.
NonOwnerSigner
Phase 1.0 only accepts owner-signed entries; this entry was signed by someone else.
FieldTooLong
Field exceeded its size limit.
Fields
BundleIdMismatch
Bundle id did not match the canonical hash of the bundle.
NonMonotonic(&'static str)
acl.epoch went backwards or update_seq is non-monotonic.
InvalidPrefixLength
params.prefix length is outside [MIN_PREFIX_LEN..=MAX_PREFIX_LEN].
PrefixMismatch
state.owner does not produce params.prefix when base58-encoded.
Fields
InvalidPrefixChars
params.prefix contains characters outside the Bitcoin base58
alphabet.
Trait Implementations§
Source§impl Debug for ValidateError
impl Debug for ValidateError
Source§impl Display for ValidateError
impl Display for ValidateError
Source§impl Error for ValidateError
impl Error for ValidateError
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 From<ValidateError> for UpdateError
impl From<ValidateError> for UpdateError
Source§fn from(source: ValidateError) -> Self
fn from(source: ValidateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnsafeUnpin for ValidateError
impl UnwindSafe for ValidateError
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