pub enum ProposalError<StorageError> {
LibraryError(LibraryError),
ProposeAddMemberError(ProposeAddMemberError<StorageError>),
CreateAddProposalError(CreateAddProposalError),
ProposeSelfUpdateError(ProposeSelfUpdateError<StorageError>),
ProposeRemoveMemberError(ProposeRemoveMemberError<StorageError>),
GroupStateError(MlsGroupStateError),
ValidationError(ValidationError),
CreateGroupContextExtProposalError(CreateGroupContextExtProposalError<StorageError>),
StorageError(StorageError),
}
Expand description
Proposal error
Variants§
LibraryError(LibraryError)
See LibraryError
for more details.
ProposeAddMemberError(ProposeAddMemberError<StorageError>)
See ProposeAddMemberError
for more details.
CreateAddProposalError(CreateAddProposalError)
See CreateAddProposalError
for more details.
ProposeSelfUpdateError(ProposeSelfUpdateError<StorageError>)
See ProposeSelfUpdateError
for more details.
ProposeRemoveMemberError(ProposeRemoveMemberError<StorageError>)
See ProposeRemoveMemberError
for more details.
GroupStateError(MlsGroupStateError)
See MlsGroupStateError
for more details.
ValidationError(ValidationError)
See ValidationError
for more details.
CreateGroupContextExtProposalError(CreateGroupContextExtProposalError<StorageError>)
See CreateGroupContextExtProposalError
for more details.
StorageError(StorageError)
Error writing proposal to storage.
Trait Implementations§
Source§impl<StorageError: Clone> Clone for ProposalError<StorageError>
impl<StorageError: Clone> Clone for ProposalError<StorageError>
Source§fn clone(&self) -> ProposalError<StorageError>
fn clone(&self) -> ProposalError<StorageError>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<StorageError: Debug> Debug for ProposalError<StorageError>
impl<StorageError: Debug> Debug for ProposalError<StorageError>
Source§impl<StorageError> Display for ProposalError<StorageError>where
ProposeAddMemberError<StorageError>: Display,
ProposeSelfUpdateError<StorageError>: Display,
ProposeRemoveMemberError<StorageError>: Display,
CreateGroupContextExtProposalError<StorageError>: Display,
impl<StorageError> Display for ProposalError<StorageError>where
ProposeAddMemberError<StorageError>: Display,
ProposeSelfUpdateError<StorageError>: Display,
ProposeRemoveMemberError<StorageError>: Display,
CreateGroupContextExtProposalError<StorageError>: Display,
Source§impl<StorageError> Error for ProposalError<StorageError>where
ProposeAddMemberError<StorageError>: Error,
ProposeSelfUpdateError<StorageError>: Error,
ProposeRemoveMemberError<StorageError>: Error,
CreateGroupContextExtProposalError<StorageError>: Error,
Self: Debug + Display,
impl<StorageError> Error for ProposalError<StorageError>where
ProposeAddMemberError<StorageError>: Error,
ProposeSelfUpdateError<StorageError>: Error,
ProposeRemoveMemberError<StorageError>: Error,
CreateGroupContextExtProposalError<StorageError>: Error,
Self: Debug + Display,
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<StorageError> From<CreateAddProposalError> for ProposalError<StorageError>
impl<StorageError> From<CreateAddProposalError> for ProposalError<StorageError>
Source§fn from(source: CreateAddProposalError) -> Self
fn from(source: CreateAddProposalError) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<CreateGroupContextExtProposalError<StorageError>> for ProposalError<StorageError>
impl<StorageError> From<CreateGroupContextExtProposalError<StorageError>> for ProposalError<StorageError>
Source§fn from(source: CreateGroupContextExtProposalError<StorageError>) -> Self
fn from(source: CreateGroupContextExtProposalError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<LibraryError> for ProposalError<StorageError>
impl<StorageError> From<LibraryError> for ProposalError<StorageError>
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<MlsGroupStateError> for ProposalError<StorageError>
impl<StorageError> From<MlsGroupStateError> for ProposalError<StorageError>
Source§fn from(source: MlsGroupStateError) -> Self
fn from(source: MlsGroupStateError) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ProposeAddMemberError<StorageError>> for ProposalError<StorageError>
impl<StorageError> From<ProposeAddMemberError<StorageError>> for ProposalError<StorageError>
Source§fn from(source: ProposeAddMemberError<StorageError>) -> Self
fn from(source: ProposeAddMemberError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ProposeRemoveMemberError<StorageError>> for ProposalError<StorageError>
impl<StorageError> From<ProposeRemoveMemberError<StorageError>> for ProposalError<StorageError>
Source§fn from(source: ProposeRemoveMemberError<StorageError>) -> Self
fn from(source: ProposeRemoveMemberError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ProposeSelfUpdateError<StorageError>> for ProposalError<StorageError>
impl<StorageError> From<ProposeSelfUpdateError<StorageError>> for ProposalError<StorageError>
Source§fn from(source: ProposeSelfUpdateError<StorageError>) -> Self
fn from(source: ProposeSelfUpdateError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ValidationError> for ProposalError<StorageError>
impl<StorageError> From<ValidationError> for ProposalError<StorageError>
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Source§impl<StorageError: PartialEq> PartialEq for ProposalError<StorageError>
impl<StorageError: PartialEq> PartialEq for ProposalError<StorageError>
impl<StorageError> StructuralPartialEq for ProposalError<StorageError>
Auto Trait Implementations§
impl<StorageError> Freeze for ProposalError<StorageError>where
StorageError: Freeze,
impl<StorageError> RefUnwindSafe for ProposalError<StorageError>where
StorageError: RefUnwindSafe,
impl<StorageError> Send for ProposalError<StorageError>where
StorageError: Send,
impl<StorageError> Sync for ProposalError<StorageError>where
StorageError: Sync,
impl<StorageError> Unpin for ProposalError<StorageError>where
StorageError: Unpin,
impl<StorageError> UnwindSafe for ProposalError<StorageError>where
StorageError: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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