pub enum ExtensionError {
UnsupportedProposalType,
UnsupportedExtensionType,
LibraryError(LibraryError),
InvalidExtensionType(ErrorString),
Capabilities(CapabilitiesExtensionError),
KeyPackageId(KeyPackageIdError),
ParentHash(ParentHashError),
RatchetTree(RatchetTreeError),
InvalidExtension(InvalidExtensionError),
}
Expand description
Extension error
Variants§
UnsupportedProposalType
Unsupported proposal type in required capabilities.
UnsupportedExtensionType
Unsupported extension type in required capabilities.
LibraryError(LibraryError)
See LibraryError
for more details.
InvalidExtensionType(ErrorString)
See ErrorString
for more details.
Capabilities(CapabilitiesExtensionError)
See CapabilitiesExtensionError
for more details.
KeyPackageId(KeyPackageIdError)
See KeyPackageIdError
for more details.
ParentHash(ParentHashError)
See ParentHashError
for more details.
RatchetTree(RatchetTreeError)
See RatchetTreeError
for more details.
InvalidExtension(InvalidExtensionError)
See InvalidExtensionError
for more details.
Trait Implementations§
Source§impl Clone for ExtensionError
impl Clone for ExtensionError
Source§fn clone(&self) -> ExtensionError
fn clone(&self) -> ExtensionError
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 Debug for ExtensionError
impl Debug for ExtensionError
Source§impl Display for ExtensionError
impl Display for ExtensionError
Source§impl Error for ExtensionError
impl Error for ExtensionError
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<CapabilitiesExtensionError> for ExtensionError
impl From<CapabilitiesExtensionError> for ExtensionError
Source§fn from(source: CapabilitiesExtensionError) -> Self
fn from(source: CapabilitiesExtensionError) -> Self
Converts to this type from the input type.
Source§impl From<ErrorString> for ExtensionError
impl From<ErrorString> for ExtensionError
Source§fn from(source: ErrorString) -> Self
fn from(source: ErrorString) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ExtensionError> for CreateGroupContextExtProposalError<StorageError>
impl<StorageError> From<ExtensionError> for CreateGroupContextExtProposalError<StorageError>
Source§fn from(source: ExtensionError) -> Self
fn from(source: ExtensionError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidExtensionError> for ExtensionError
impl From<InvalidExtensionError> for ExtensionError
Source§fn from(source: InvalidExtensionError) -> Self
fn from(source: InvalidExtensionError) -> Self
Converts to this type from the input type.
Source§impl From<KeyPackageIdError> for ExtensionError
impl From<KeyPackageIdError> for ExtensionError
Source§fn from(source: KeyPackageIdError) -> Self
fn from(source: KeyPackageIdError) -> Self
Converts to this type from the input type.
Source§impl From<LibraryError> for ExtensionError
impl From<LibraryError> for ExtensionError
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Converts to this type from the input type.
Source§impl From<ParentHashError> for ExtensionError
impl From<ParentHashError> for ExtensionError
Source§fn from(source: ParentHashError) -> Self
fn from(source: ParentHashError) -> Self
Converts to this type from the input type.
Source§impl From<RatchetTreeError> for ExtensionError
impl From<RatchetTreeError> for ExtensionError
Source§fn from(source: RatchetTreeError) -> Self
fn from(source: RatchetTreeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExtensionError
impl PartialEq for ExtensionError
impl StructuralPartialEq for ExtensionError
Auto Trait Implementations§
impl Freeze for ExtensionError
impl RefUnwindSafe for ExtensionError
impl Send for ExtensionError
impl Sync for ExtensionError
impl Unpin for ExtensionError
impl UnwindSafe for ExtensionError
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