pub enum SDKError {
Serde(Error),
FromUtf8Error(FromUtf8Error),
StringBytesConversion(Utf8Error),
NumBytesConversion(TryFromSliceError),
InvalidValue,
MissingSignatureHeader,
MissingPublicKeyHeader,
InvalidSignatureHeader,
InvalidPublicKeyHeader,
}Expand description
Represents errors that can occur when using the seda_runtime_sdk.
Variants§
Serde(Error)
Wraps errors from JSON serialization or deserialization.
FromUtf8Error(FromUtf8Error)
Wraps errors arising from converting bytes into a UTF-8 String.
StringBytesConversion(Utf8Error)
Errors encountered when interpreting raw bytes as UTF-8.
NumBytesConversion(TryFromSliceError)
Wraps errors when converting a byte slice into a fixed-size array.
InvalidValue
Indicates that a value did not meet expected constraints.
MissingSignatureHeader
The x-seda-signature header in a proxy http response is missing.
MissingPublicKeyHeader
The x-seda-publickey header in a proxy http response is missing.
InvalidSignatureHeader
The x-seda-signature header in a proxy http response is invalid.
InvalidPublicKeyHeader
The x-seda-publickey header in a proxy http response is invalid.
Trait Implementations§
Source§impl Error for SDKError
impl Error for SDKError
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<FromUtf8Error> for SDKError
impl From<FromUtf8Error> for SDKError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for SDKError
impl From<TryFromSliceError> for SDKError
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SDKError
impl !RefUnwindSafe for SDKError
impl Send for SDKError
impl Sync for SDKError
impl Unpin for SDKError
impl !UnwindSafe for SDKError
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