pub enum SidError {
Show 13 variants
ContributorIdTooLarge(u16),
MaxContributorsReached,
InvalidFormat(String),
DecodeError(DecodeError),
GlobalIdOverflow(u64),
ContributorNotRegistered(u16),
InvalidCounterFile(u16),
InvalidConfigFile(String),
InvalidName(String),
IoError(Error),
SerializationError(String),
NotFound(String),
StorageError(String),
}Expand description
Errors that can occur during SmartID operations
Variants§
ContributorIdTooLarge(u16)
Contributor ID exceeds maximum (998)
MaxContributorsReached
Space has reached maximum contributors (999)
InvalidFormat(String)
Invalid SmartID format
DecodeError(DecodeError)
Base36 decoding failed
GlobalIdOverflow(u64)
Global ID overflow (exceeded 6-char capacity)
ContributorNotRegistered(u16)
Contributor not registered
InvalidCounterFile(u16)
Invalid counter file format
InvalidConfigFile(String)
Invalid config file format
InvalidName(String)
Invalid name format (not name-fixed)
IoError(Error)
I/O error during storage operations
SerializationError(String)
Serialization error
NotFound(String)
Object not found
StorageError(String)
Storage backend error
Trait Implementations§
Source§impl Error for SidError
impl Error for SidError
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<DecodeError> for SidError
impl From<DecodeError> for SidError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SidError
impl !RefUnwindSafe for SidError
impl Send for SidError
impl Sync for SidError
impl Unpin for SidError
impl !UnwindSafe for SidError
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