pub enum EdgeError {
Show 16 variants
Io(Error),
Serialization(String),
Deserialization(String),
Compression(String),
Decompression(String),
Cache(String),
Sync(String),
Conflict(String),
ResourceConstraint(String),
Runtime(String),
InvalidConfig(String),
Network(String),
Storage(String),
NotSupported(String),
Timeout(String),
Other(String),
}Expand description
Edge computing errors
Variants§
Io(Error)
I/O error occurred
Serialization(String)
Serialization error
Deserialization(String)
Deserialization error
Compression(String)
Compression error
Decompression(String)
Decompression error
Cache(String)
Cache error
Sync(String)
Synchronization error
Conflict(String)
Conflict resolution error
ResourceConstraint(String)
Resource constraint error
Runtime(String)
Runtime error
InvalidConfig(String)
Invalid configuration
Network(String)
Network error
Storage(String)
Storage error
NotSupported(String)
Operation not supported in current mode
Timeout(String)
Timeout error
Other(String)
Generic error
Implementations§
Source§impl EdgeError
impl EdgeError
Sourcepub fn serialization<S: Display>(msg: S) -> Self
pub fn serialization<S: Display>(msg: S) -> Self
Create a new serialization error
Sourcepub fn deserialization<S: Display>(msg: S) -> Self
pub fn deserialization<S: Display>(msg: S) -> Self
Create a new deserialization error
Sourcepub fn compression<S: Display>(msg: S) -> Self
pub fn compression<S: Display>(msg: S) -> Self
Create a new compression error
Sourcepub fn decompression<S: Display>(msg: S) -> Self
pub fn decompression<S: Display>(msg: S) -> Self
Create a new decompression error
Sourcepub fn resource_constraint<S: Display>(msg: S) -> Self
pub fn resource_constraint<S: Display>(msg: S) -> Self
Create a new resource constraint error
Sourcepub fn invalid_config<S: Display>(msg: S) -> Self
pub fn invalid_config<S: Display>(msg: S) -> Self
Create a new invalid config error
Sourcepub fn not_supported<S: Display>(msg: S) -> Self
pub fn not_supported<S: Display>(msg: S) -> Self
Create a new not supported error
Trait Implementations§
Source§impl Error for EdgeError
impl Error for EdgeError
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()
Auto Trait Implementations§
impl Freeze for EdgeError
impl !RefUnwindSafe for EdgeError
impl Send for EdgeError
impl Sync for EdgeError
impl Unpin for EdgeError
impl UnsafeUnpin for EdgeError
impl !UnwindSafe for EdgeError
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