pub enum SourceNormalizerError {
UnsupportedRuntimeProfile {
profile: String,
},
InvalidInput {
message: String,
},
PayloadCodec {
message: String,
},
Configuration {
message: String,
},
AbiViolation {
message: String,
},
NotConfigured,
UnsupportedOperation {
operation: String,
},
Timeout {
message: String,
},
ResourceExhausted {
message: String,
},
Internal {
message: String,
},
}Expand description
Error payload shared by source normalizer plugins and host-side adapters.
Variants§
UnsupportedRuntimeProfile
InvalidInput
PayloadCodec
Configuration
AbiViolation
NotConfigured
UnsupportedOperation
Timeout
ResourceExhausted
Internal
Implementations§
Source§impl SourceNormalizerError
impl SourceNormalizerError
pub fn payload_codec(message: impl Into<String>) -> Self
pub fn configuration(message: impl Into<String>) -> Self
pub fn abi_violation(message: impl Into<String>) -> Self
pub fn invalid_input(message: impl Into<String>) -> Self
pub fn unsupported_operation(operation: impl Into<String>) -> Self
pub fn internal(message: impl Into<String>) -> Self
pub fn resource_exhausted(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for SourceNormalizerError
impl Clone for SourceNormalizerError
Source§fn clone(&self) -> SourceNormalizerError
fn clone(&self) -> SourceNormalizerError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceNormalizerError
impl Debug for SourceNormalizerError
Source§impl<'de> Deserialize<'de> for SourceNormalizerError
impl<'de> Deserialize<'de> for SourceNormalizerError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SourceNormalizerError
impl Display for SourceNormalizerError
impl Eq for SourceNormalizerError
Source§impl Error for SourceNormalizerError
impl Error for SourceNormalizerError
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 PartialEq for SourceNormalizerError
impl PartialEq for SourceNormalizerError
Source§impl Serialize for SourceNormalizerError
impl Serialize for SourceNormalizerError
impl StructuralPartialEq for SourceNormalizerError
Auto Trait Implementations§
impl Freeze for SourceNormalizerError
impl RefUnwindSafe for SourceNormalizerError
impl Send for SourceNormalizerError
impl Sync for SourceNormalizerError
impl Unpin for SourceNormalizerError
impl UnsafeUnpin for SourceNormalizerError
impl UnwindSafe for SourceNormalizerError
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