pub enum OpenMlsAuthorityError {
Show 20 variants
Provider(String),
Signature(String),
GroupCreate(String),
SelfUpdate(String),
Export(String),
AmkLength(usize),
KeyPackage(String),
AddMember(String),
RemoveMember(String),
ProcessMessage(String),
UnexpectedMessage(String),
Welcome(String),
Binding(String),
Message(String),
Persist(String),
Tombstoned(Uuid),
Upgrade(String),
FrozenStateMismatch,
Resilience(String),
BlockSelf(Uuid),
}Expand description
Errors from constructing, advancing, or running a membership ceremony on an
OpenMlsAuthority. OpenMLS/libcrux error details are captured as English strings
(server-internal diagnostics, not user-facing).
Variants§
Provider(String)
The libcrux crypto provider failed to initialise.
Signature(String)
The MLS leaf signature keypair could not be created or stored.
GroupCreate(String)
The MLS group could not be created at the pinned ciphersuite.
SelfUpdate(String)
A self-update commit (epoch advance) failed to be produced or merged.
Export(String)
The RFC 9420 exporter failed to derive the AMK for the current epoch.
AmkLength(usize)
The exporter returned an AMK of the wrong length (never expected under a fixed suite).
KeyPackage(String)
A KeyPackage could not be built for a joining device.
AddMember(String)
An Add proposal + commit failed.
RemoveMember(String)
A Remove proposal + commit failed.
ProcessMessage(String)
Processing an incoming MLS message (commit / application) failed.
UnexpectedMessage(String)
A received message was not the kind the ceremony expected (e.g. a proposal where a commit or application message was required).
Welcome(String)
A Welcome could not be processed into a joined group.
Binding(String)
The MLS ↔ device-identity LeafNode binding failed to build or verify.
Message(String)
An in-band key-delivery message could not be encoded/decoded or applied.
Persist(String)
Durable group-state export/import failed.
Tombstoned(Uuid)
A write / ceremony was attempted on a tombstoned (frozen) album: the album has been upgraded and all activity has moved to the fork. Reads are unaffected — only writes refuse.
Upgrade(String)
A step of the tombstone-plus-fork upgrade ceremony failed (intent signature, quiescence conflict, or fork construction).
FrozenStateMismatch
A received AlbumTombstone’s frozen_state_hash disagrees with this member’s own recomputed
hash — at least one member’s album view diverges. The upgrade aborts and the album returns to
normal operation (each member independently).
Resilience(String)
A resilience operation (reconciliation / re-keying) failed.
BlockSelf(Uuid)
block_user was asked to block the local user. A device
cannot evict itself from its own group, and returning success would tell the caller a block
took effect when nothing was removed.
Trait Implementations§
Source§impl Debug for OpenMlsAuthorityError
impl Debug for OpenMlsAuthorityError
Source§impl Display for OpenMlsAuthorityError
impl Display for OpenMlsAuthorityError
Source§impl Error for OpenMlsAuthorityError
impl Error for OpenMlsAuthorityError
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
use the Display impl or to_string()
Source§impl From<UpgradeError> for OpenMlsAuthorityError
impl From<UpgradeError> for OpenMlsAuthorityError
Source§fn from(error: UpgradeError) -> Self
fn from(error: UpgradeError) -> Self
The ceremony’s wire vocabulary is ungated, so its errors arrive from outside this module and are folded into the one variant that already names this ceremony.
Auto Trait Implementations§
impl Freeze for OpenMlsAuthorityError
impl RefUnwindSafe for OpenMlsAuthorityError
impl Send for OpenMlsAuthorityError
impl Sync for OpenMlsAuthorityError
impl Unpin for OpenMlsAuthorityError
impl UnsafeUnpin for OpenMlsAuthorityError
impl UnwindSafe for OpenMlsAuthorityError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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