pub enum WorkerAddressError {
KeyExists(String),
KeyNotFound(String),
EncodingError(Error),
DecodingError(Error),
UnsupportedVersion(u8),
InvalidFormat(String),
}Expand description
Errors that can occur when working with WorkerAddress.
Variants§
KeyExists(String)
Attempted to add a key that already exists
KeyNotFound(String)
Attempted to access or remove a key that doesn’t exist
EncodingError(Error)
Failed to encode the map to bytes
DecodingError(Error)
Failed to decode bytes to map
UnsupportedVersion(u8)
Encountered an unsupported format version
InvalidFormat(String)
The data format is invalid
Trait Implementations§
Source§impl Debug for WorkerAddressError
impl Debug for WorkerAddressError
Source§impl Display for WorkerAddressError
impl Display for WorkerAddressError
Source§impl Error for WorkerAddressError
impl Error for WorkerAddressError
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 WorkerAddressError
impl From<Error> for WorkerAddressError
Auto Trait Implementations§
impl !RefUnwindSafe for WorkerAddressError
impl !UnwindSafe for WorkerAddressError
impl Freeze for WorkerAddressError
impl Send for WorkerAddressError
impl Sync for WorkerAddressError
impl Unpin for WorkerAddressError
impl UnsafeUnpin for WorkerAddressError
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