pub enum Error {
Show 43 variants
Hex(FromHexError),
Keys(Error),
Event(Error),
EventBuilder(Error),
Signer(SignerError),
NIP44(Error),
RelayUrl(Error),
Tls(Error),
Utf8(Utf8Error),
Crypto(CryptoError),
OpenMlsGeneric(LibraryError),
InvalidExtension(InvalidExtensionError),
CreateMessage(CreateMessageError),
ExportSecret(ExportSecretError),
BasicCredential(BasicCredentialError),
ProcessMessage(ProcessMessageError),
ProtocolMessage(String),
KeyPackage(String),
Group(String),
GroupExporterSecretNotFound,
Message(String),
CannotDecryptOwnMessage,
MergePendingCommit(String),
CommitToPendingProposalsError,
SelfUpdate(String),
Welcome(String),
MissingWelcomeForProcessedWelcome,
ProcessedWelcomeNotFound,
Provider(String),
GroupNotFound,
ProtocolGroupIdMismatch,
OwnLeafNotFound,
CantLoadSigner,
InvalidWelcomeMessage,
UnexpectedEvent {
expected: Kind,
received: Kind,
},
UnexpectedExtensionType,
NostrGroupDataExtensionNotFound,
MessageFromNonMember,
NotImplemented(String),
MessageNotFound,
ProposalFromNonAdmin,
CommitFromNonAdmin,
UpdateGroupContextExts(String),
}Expand description
Nostr MLS error
Variants§
Hex(FromHexError)
Hex error
Keys(Error)
Keys error
Event(Error)
Event error
EventBuilder(Error)
Event Builder error
Signer(SignerError)
Nostr Signer error
NIP44(Error)
NIP44 error
RelayUrl(Error)
Relay URL error
Tls(Error)
TLS error
Utf8(Utf8Error)
UTF8 error
Crypto(CryptoError)
Crypto error
OpenMlsGeneric(LibraryError)
Generic OpenMLS error
InvalidExtension(InvalidExtensionError)
Invalid extension error
CreateMessage(CreateMessageError)
Create message error
ExportSecret(ExportSecretError)
Export secret error
BasicCredential(BasicCredentialError)
Basic credential error
ProcessMessage(ProcessMessageError)
Process message error
ProtocolMessage(String)
Protocol message error
KeyPackage(String)
Key package error
Group(String)
Group error
GroupExporterSecretNotFound
Group exporter secret not found
Message(String)
Message error
CannotDecryptOwnMessage
Cannot decrypt own message
MergePendingCommit(String)
Merge pending commit error
CommitToPendingProposalsError
Commit to pending proposal
SelfUpdate(String)
Self update error
Welcome(String)
Welcome error
MissingWelcomeForProcessedWelcome
We’re missing a Welcome for an existing ProcessedWelcome
ProcessedWelcomeNotFound
Processed welcome not found
Provider(String)
Provider error
GroupNotFound
Group not found
ProtocolGroupIdMismatch
Protocol message group ID doesn’t match the current group ID
OwnLeafNotFound
Own leaf not found
CantLoadSigner
Failed to load signer
InvalidWelcomeMessage
Invalid Welcome message
UnexpectedEvent
Unexpected event
UnexpectedExtensionType
Unexpected extension type
NostrGroupDataExtensionNotFound
Nostr group data extension not found
MessageFromNonMember
Message from a non-member of a group
NotImplemented(String)
Code path is not yet implemented
MessageNotFound
Stored message not found
ProposalFromNonAdmin
Proposal message received from a non-admin
CommitFromNonAdmin
Commit message received from a non-admin
UpdateGroupContextExts(String)
Error when updating group context extensions
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl<T> From<AddMembersError<T>> for Errorwhere
T: Display,
impl<T> From<AddMembersError<T>> for Errorwhere
T: Display,
Source§fn from(e: AddMembersError<T>) -> Self
fn from(e: AddMembersError<T>) -> Self
Source§impl From<BasicCredentialError> for Error
impl From<BasicCredentialError> for Error
Source§fn from(e: BasicCredentialError) -> Self
fn from(e: BasicCredentialError) -> Self
Source§impl<T> From<CommitToPendingProposalsError<T>> for Errorwhere
T: Display,
impl<T> From<CommitToPendingProposalsError<T>> for Errorwhere
T: Display,
Source§fn from(_e: CommitToPendingProposalsError<T>) -> Self
fn from(_e: CommitToPendingProposalsError<T>) -> Self
Source§impl<T> From<CreateGroupContextExtProposalError<T>> for Errorwhere
T: Display,
impl<T> From<CreateGroupContextExtProposalError<T>> for Errorwhere
T: Display,
Source§fn from(e: CreateGroupContextExtProposalError<T>) -> Self
fn from(e: CreateGroupContextExtProposalError<T>) -> Self
Source§impl From<CreateMessageError> for Error
impl From<CreateMessageError> for Error
Source§fn from(e: CreateMessageError) -> Self
fn from(e: CreateMessageError) -> Self
Source§impl From<CryptoError> for Error
impl From<CryptoError> for Error
Source§fn from(e: CryptoError) -> Self
fn from(e: CryptoError) -> Self
Source§impl From<ExportSecretError> for Error
impl From<ExportSecretError> for Error
Source§fn from(e: ExportSecretError) -> Self
fn from(e: ExportSecretError) -> Self
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Source§impl From<InvalidExtensionError> for Error
impl From<InvalidExtensionError> for Error
Source§fn from(e: InvalidExtensionError) -> Self
fn from(e: InvalidExtensionError) -> Self
Source§impl From<KeyPackageNewError> for Error
impl From<KeyPackageNewError> for Error
Source§fn from(e: KeyPackageNewError) -> Self
fn from(e: KeyPackageNewError) -> Self
Source§impl From<KeyPackageVerifyError> for Error
impl From<KeyPackageVerifyError> for Error
Source§fn from(e: KeyPackageVerifyError) -> Self
fn from(e: KeyPackageVerifyError) -> Self
Source§impl From<LibraryError> for Error
impl From<LibraryError> for Error
Source§fn from(e: LibraryError) -> Self
fn from(e: LibraryError) -> Self
Source§impl<T> From<MergePendingCommitError<T>> for Errorwhere
T: Display,
impl<T> From<MergePendingCommitError<T>> for Errorwhere
T: Display,
Source§fn from(e: MergePendingCommitError<T>) -> Self
fn from(e: MergePendingCommitError<T>) -> Self
Source§impl<T> From<NewGroupError<T>> for Errorwhere
T: Display,
impl<T> From<NewGroupError<T>> for Errorwhere
T: Display,
Source§fn from(e: NewGroupError<T>) -> Self
fn from(e: NewGroupError<T>) -> Self
Source§impl From<ProcessMessageError> for Error
impl From<ProcessMessageError> for Error
Source§fn from(e: ProcessMessageError) -> Self
fn from(e: ProcessMessageError) -> Self
Source§impl From<ProtocolMessageError> for Error
impl From<ProtocolMessageError> for Error
Source§fn from(e: ProtocolMessageError) -> Self
fn from(e: ProtocolMessageError) -> Self
Source§impl<T> From<SelfUpdateError<T>> for Errorwhere
T: Display,
impl<T> From<SelfUpdateError<T>> for Errorwhere
T: Display,
Source§fn from(e: SelfUpdateError<T>) -> Self
fn from(e: SelfUpdateError<T>) -> Self
Source§impl From<SignerError> for Error
impl From<SignerError> for Error
Source§fn from(e: SignerError) -> Self
fn from(e: SignerError) -> Self
Source§impl<T> From<WelcomeError<T>> for Errorwhere
T: Display,
impl<T> From<WelcomeError<T>> for Errorwhere
T: Display,
Source§fn from(e: WelcomeError<T>) -> Self
fn from(e: WelcomeError<T>) -> Self
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
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>
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>
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