pub enum ConversationError {
ConversationBlocked(String),
PartialFreeze,
Mls(MlsError),
Consensus(ConsensusError),
Message(DecodeError),
SystemTime(SystemTimeError),
NotASteward,
NoProposals,
InvalidConversationUpdateRequest,
EmptyMembersList,
InvalidConfigSize,
UnexpectedNonMlsProposals {
proposal_ids: Vec<u32>,
},
}Expand description
Errors from operations on a single conversation — protocol faults and caller-facing guard failures alike.
Registry-level failures (conversation lookup, lock poisoning, transport
delivery) are integrator concerns and live in the integrator’s own error
type — see the reference User in the gateway crate.
Variants§
ConversationBlocked(String)
PartialFreeze
Mls(MlsError)
Consensus(ConsensusError)
Message(DecodeError)
SystemTime(SystemTimeError)
NotASteward
NoProposals
InvalidConversationUpdateRequest
EmptyMembersList
InvalidConfigSize
UnexpectedNonMlsProposals
Trait Implementations§
Source§impl Debug for ConversationError
impl Debug for ConversationError
Source§impl Display for ConversationError
impl Display for ConversationError
Source§impl Error for ConversationError
impl Error for ConversationError
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<ConsensusError> for ConversationError
impl From<ConsensusError> for ConversationError
Source§fn from(source: ConsensusError) -> Self
fn from(source: ConsensusError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for ConversationError
impl From<DecodeError> for ConversationError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<MlsError> for ConversationError
impl From<MlsError> for ConversationError
Source§impl From<SystemTimeError> for ConversationError
impl From<SystemTimeError> for ConversationError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConversationError
impl !UnwindSafe for ConversationError
impl Freeze for ConversationError
impl Send for ConversationError
impl Sync for ConversationError
impl Unpin for ConversationError
impl UnsafeUnpin for ConversationError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more