pub enum ExtensionError {
Show 23 variants
CommandNotFound(String),
MetricNotFound(String),
InvalidArguments(String),
ExecutionFailed(String),
Timeout(String),
NotFound(String),
InvalidFormat(String),
LoadFailed(String),
SecurityError(String),
SymbolNotFound(String),
IncompatibleVersion {
expected: u32,
got: u32,
},
NullPointer,
AlreadyRegistered(String),
NotSupported(String),
InvalidStreamData(String),
SessionNotFound(String),
SessionAlreadyExists(String),
InferenceFailed(String),
Io(String),
Json(String),
ConfigurationError(String),
InternalError(String),
Other(String),
}Expand description
Extension error types.
Variants§
CommandNotFound(String)
Command not found
MetricNotFound(String)
Metric not found
InvalidArguments(String)
Invalid arguments
ExecutionFailed(String)
Execution failed
Timeout(String)
Timeout
NotFound(String)
Not found
InvalidFormat(String)
Invalid format
LoadFailed(String)
Load failed
SecurityError(String)
Security error
SymbolNotFound(String)
Symbol not found (FFI)
IncompatibleVersion
Incompatible version
NullPointer
Null pointer (FFI)
AlreadyRegistered(String)
Already registered
NotSupported(String)
Not supported
InvalidStreamData(String)
Invalid stream data
SessionNotFound(String)
Session not found
SessionAlreadyExists(String)
Session already exists
InferenceFailed(String)
Inference failed
Io(String)
IO error
Json(String)
JSON error
ConfigurationError(String)
Configuration error
InternalError(String)
Internal error
Other(String)
Other error
Trait Implementations§
Source§impl Clone for ExtensionError
impl Clone for ExtensionError
Source§fn clone(&self) -> ExtensionError
fn clone(&self) -> ExtensionError
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 ExtensionError
impl Debug for ExtensionError
Source§impl<'de> Deserialize<'de> for ExtensionError
impl<'de> Deserialize<'de> for ExtensionError
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 ExtensionError
impl Display for ExtensionError
Source§impl Error for ExtensionError
impl Error for ExtensionError
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 From<Error> for ExtensionError
impl From<Error> for ExtensionError
Source§impl From<Error> for ExtensionError
impl From<Error> for ExtensionError
Source§impl From<ExtensionError> for ErrorKind
impl From<ExtensionError> for ErrorKind
Source§fn from(error: ExtensionError) -> Self
fn from(error: ExtensionError) -> Self
Converts to this type from the input type.
Source§impl From<SdkExtensionError> for ExtensionError
impl From<SdkExtensionError> for ExtensionError
Source§fn from(e: SdkExtensionError) -> Self
fn from(e: SdkExtensionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtensionError
impl RefUnwindSafe for ExtensionError
impl Send for ExtensionError
impl Sync for ExtensionError
impl Unpin for ExtensionError
impl UnsafeUnpin for ExtensionError
impl UnwindSafe for ExtensionError
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