pub enum CommError {
Show 24 variants
InvalidChannelName(String),
InvalidContent(String),
InvalidSender(String),
ChannelNotFound(u64),
MessageNotFound(u64),
SubscriptionNotFound(u64),
ChannelFull(u64),
NotInChannel(String, u64),
AlreadyInChannel(String, u64),
ChannelStateViolation(u64, String),
DeadLetterNotFound(usize),
Io(Error),
Serialization(String),
InvalidFile(String),
ConsentError(String),
TrustError(String),
TemporalError(String),
FederationError(String),
HiveError(String),
ConsentDenied {
reason: String,
},
RateLimitExceeded {
limit: String,
},
LockError(String),
KeyNotFound(u64),
NotFound(String),
}Expand description
All errors produced by the communication engine.
Variants§
InvalidChannelName(String)
Invalid channel name.
InvalidContent(String)
Invalid message content.
InvalidSender(String)
Invalid sender.
ChannelNotFound(u64)
Channel not found.
MessageNotFound(u64)
Message not found.
SubscriptionNotFound(u64)
Subscription not found.
ChannelFull(u64)
Channel is full.
NotInChannel(String, u64)
Participant not in channel.
AlreadyInChannel(String, u64)
Participant already in channel.
ChannelStateViolation(u64, String)
Channel is in a state that does not allow the operation.
DeadLetterNotFound(usize)
Dead letter index out of bounds.
Io(Error)
I/O error.
Serialization(String)
Serialization error.
InvalidFile(String)
Invalid file format.
ConsentError(String)
Consent error.
TrustError(String)
Trust level error.
TemporalError(String)
Temporal scheduling error.
FederationError(String)
Federation error.
HiveError(String)
Hive mind error.
ConsentDenied
Consent denied — the recipient has not granted the required consent.
RateLimitExceeded
Rate limit exceeded — the sender has exceeded the configured rate limit.
LockError(String)
File locking error.
KeyNotFound(u64)
Key not found.
NotFound(String)
Generic not-found error.
Trait Implementations§
Source§impl Error for CommError
impl Error for CommError
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<CommError> for SisterError
impl From<CommError> for SisterError
Auto Trait Implementations§
impl !RefUnwindSafe for CommError
impl !UnwindSafe for CommError
impl Freeze for CommError
impl Send for CommError
impl Sync for CommError
impl Unpin for CommError
impl UnsafeUnpin for CommError
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