Enum casper_types::KeyFromStrError
source · #[non_exhaustive]pub enum KeyFromStrError {
Show 16 variants
Account(FromStrError),
Hash(String),
URef(FromStrError),
Transfer(TransferFromStrError),
DeployInfo(String),
EraInfo(String),
Balance(String),
Bid(String),
Withdraw(String),
Dictionary(String),
SystemContractRegistry(String),
EraSummary(String),
Unbond(String),
ChainspecRegistry(String),
ChecksumRegistry(String),
UnknownPrefix,
}
Expand description
Errors produced when converting a String
into a Key
.
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.
Account(FromStrError)
Account parse error.
Hash(String)
Hash parse error.
URef(FromStrError)
URef parse error.
Transfer(TransferFromStrError)
Transfer parse error.
DeployInfo(String)
DeployInfo parse error.
EraInfo(String)
EraInfo parse error.
Balance(String)
Balance parse error.
Bid(String)
Bid parse error.
Withdraw(String)
Withdraw parse error.
Dictionary(String)
Dictionary parse error.
SystemContractRegistry(String)
System contract registry parse error.
EraSummary(String)
Era summary parse error.
Unbond(String)
Unbond parse error.
ChainspecRegistry(String)
Chainspec registry error.
ChecksumRegistry(String)
Checksum registry error.
UnknownPrefix
Unknown prefix.
Trait Implementations§
source§impl Debug for FromStrError
impl Debug for FromStrError
source§impl Display for FromStrError
impl Display for FromStrError
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: TransferFromStrError) -> Self
fn from(error: TransferFromStrError) -> 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.
Auto Trait Implementations§
impl Freeze for FromStrError
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