pub enum CollabError {
NotMember {
team_id: String,
},
InviteNotFound,
PubkeyMismatch,
Http {
status: u16,
body: String,
},
Serde(Error),
Unreachable(String),
RecoveryFailed(String),
}Expand description
Errors produced by the CollabRemote trait and its implementations.
Variants§
NotMember
The caller’s public key is not a member of the specified team.
InviteNotFound
The invite token was not found or has expired.
PubkeyMismatch
The public key presented during invite confirmation does not match the key the invite was originally bound to.
Http
The remote server returned an unexpected HTTP status.
Serde(Error)
JSON serialization or deserialization failed.
Unreachable(String)
The remote server could not be reached (network / DNS / TLS failure).
RecoveryFailed(String)
A Shamir share could not be reconstructed into a valid 32-byte key.
Trait Implementations§
Source§impl Debug for CollabError
impl Debug for CollabError
Source§impl Display for CollabError
impl Display for CollabError
Source§impl Error for CollabError
impl Error for CollabError
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 CollabError
impl !RefUnwindSafe for CollabError
impl Send for CollabError
impl Sync for CollabError
impl Unpin for CollabError
impl UnsafeUnpin for CollabError
impl !UnwindSafe for CollabError
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