Enum casper_types::URefFromStrError
source · #[non_exhaustive]pub enum URefFromStrError {
InvalidPrefix,
MissingSuffix,
InvalidAccessRights,
Hex(DecodeError),
Int(ParseIntError),
Address(TryFromSliceError),
}
Expand description
Error while parsing a URef from a formatted string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidPrefix
Prefix is not “uref-”.
MissingSuffix
No access rights as suffix.
InvalidAccessRights
Access rights are invalid.
Hex(DecodeError)
Failed to decode address portion of URef.
Int(ParseIntError)
Failed to parse an int.
Address(TryFromSliceError)
The address portion is the wrong length.
Trait Implementations§
source§impl Debug for FromStrError
impl Debug for FromStrError
source§impl Display for FromStrError
impl Display for FromStrError
source§impl From<DecodeError> for FromStrError
impl From<DecodeError> for FromStrError
source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<FromStrError> for FromStrError
impl From<FromStrError> for FromStrError
source§fn from(error: FromStrError) -> Self
fn from(error: FromStrError) -> Self
Converts to this type from the input type.
source§impl From<FromStrError> for FromStrError
impl From<FromStrError> for FromStrError
source§fn from(error: FromStrError) -> Self
fn from(error: FromStrError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for FromStrError
impl From<ParseIntError> for FromStrError
source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for FromStrError
impl From<TryFromSliceError> for FromStrError
source§fn from(error: TryFromSliceError) -> Self
fn from(error: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FromStrError
impl Send for FromStrError
impl Sync for FromStrError
impl Unpin for FromStrError
impl UnwindSafe for FromStrError
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