Enum waves_rust::error::Error
source · pub enum Error {
Show 17 variants
NodeError {
error: u32,
message: String,
},
IoError(Error),
JsonParseError {
field: String,
json: String,
},
Base64Error(DecodeError),
Base58Error(Error),
BlakeError(InvalidSizeError),
UrlParseError(ParseError),
WrongTransactionType {
expected_type: u8,
actual_type: u8,
},
ProtobufEncodeError(EncodeError),
SignatureError(SignatureError),
InvalidBytesLength {
expected_len: usize,
actual_len: usize,
},
MontgomeryPointConversionError,
HexError(FromHexError),
UnsupportedOperation(String),
InvalidAliasName {
min_length: u8,
max_length: u8,
alphabet: String,
prefix: String,
chain_id: char,
},
UnsupportedOrderVersion,
UnsupportedTransactionVersion {
actual_version: u8,
supported_version: u8,
tx_type: TransactionData,
},
}
Variants§
NodeError
IoError(Error)
JsonParseError
Base64Error(DecodeError)
Base58Error(Error)
BlakeError(InvalidSizeError)
UrlParseError(ParseError)
WrongTransactionType
ProtobufEncodeError(EncodeError)
SignatureError(SignatureError)
InvalidBytesLength
MontgomeryPointConversionError
HexError(FromHexError)
UnsupportedOperation(String)
InvalidAliasName
UnsupportedOrderVersion
UnsupportedTransactionVersion
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<EncodeError> for Error
impl From<EncodeError> for Error
source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<InvalidSizeError> for Error
impl From<InvalidSizeError> for Error
source§fn from(source: InvalidSizeError) -> Self
fn from(source: InvalidSizeError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request