pub enum CommitRuleError {
Show 29 variants
IdentitySequenceNotBeforeEnvelope {
identity_sequence: u64,
envelope_sequence: u64,
},
ActorCouldNotBeFound,
InboxValidationFailed(String),
InsufficientPermissions,
InvalidVersionFormat(String),
ProtocolVersionTooLow(String),
ActorNotMember,
SubjectDoesNotExist,
MultipleActors,
MissingGroupMembership,
MissingMutableMetadata,
UnexpectedInstallationAdded(Vec<Vec<u8>>),
SequenceIdDecreased,
UnexpectedInstallationsRemoved(Vec<Vec<u8>>),
GroupMetadata(GroupMetadataError),
MlsCredential(BasicCredentialError),
GroupMutableMetadata(GroupMutableMetadataError),
ProtoDecode(DecodeError),
GroupMutablePermissions(GroupMutablePermissionsError),
NoPSKSupport,
InvalidAppDataUpdateList(ComponentId),
UnsupportedProposalType(ProposalType),
TooManyCharacters {
length: usize,
},
ProposerNotFound,
ProposalsNotEnabled,
MinVersionDowngrade {
requested: String,
current: String,
},
MinVersionRemoveOnExistingFloor {
current: String,
},
ComponentSource(ComponentSourceError),
Conversion(ConversionError),
}Expand description
A commit breaks a validation rule, or its group state cannot be read.
Variants§
IdentitySequenceNotBeforeEnvelope
Identity updates must precede the group envelope. Not retryable.
Fields
ActorCouldNotBeFound
InboxValidationFailed(String)
InsufficientPermissions
InvalidVersionFormat(String)
ProtocolVersionTooLow(String)
ActorNotMember
SubjectDoesNotExist
MultipleActors
MissingGroupMembership
MissingMutableMetadata
UnexpectedInstallationAdded(Vec<Vec<u8>>)
SequenceIdDecreased
UnexpectedInstallationsRemoved(Vec<Vec<u8>>)
GroupMetadata(GroupMetadataError)
MlsCredential(BasicCredentialError)
GroupMutableMetadata(GroupMutableMetadataError)
ProtoDecode(DecodeError)
GroupMutablePermissions(GroupMutablePermissionsError)
NoPSKSupport
InvalidAppDataUpdateList(ComponentId)
The commit’s AppDataUpdate proposals conflict for this component
under draft-ietf-mls-extensions-08 §4.7.
UnsupportedProposalType(ProposalType)
TooManyCharacters
ProposerNotFound
ProposalsNotEnabled
MinVersionDowngrade
Sender published an AppDataUpdate(Update) against
MIN_SUPPORTED_PROTOCOL_VERSION whose new value is below the
existing floor. Monotonic-only: a downgrade silently unpauses
peers between the new and old floors, defeating XIP §3’s gate.
MinVersionRemoveOnExistingFloor
Sender published an AppDataUpdate(Remove) against
MIN_SUPPORTED_PROTOCOL_VERSION on a group that already has a
floor set. Explicit unsetting is just a downgrade in disguise,
rejected for the same XIP §3 reason.
ComponentSource(ComponentSourceError)
A well-known component value in the AppData dictionary failed
to decode while validating an AppDataUpdate proposal — most
commonly a malformed COMPONENT_REGISTRY. Treated as a
terminal wire-format violation so the offending commit is
rejected rather than silently downgraded to “empty registry”
(which would let a permissive validator state slip in).
Conversion(ConversionError)
Implementations§
Source§impl CommitRuleError
impl CommitRuleError
Sourcepub fn is_safe_rejection(&self) -> bool
pub fn is_safe_rejection(&self) -> bool
Only authenticated, deterministic invalid input can advance the prefix. Unsupported versions and proposal types leave the head pending.
Trait Implementations§
Source§impl Debug for CommitRuleError
impl Debug for CommitRuleError
Source§impl Display for CommitRuleError
impl Display for CommitRuleError
Source§impl Error for CommitRuleError
impl Error for CommitRuleError
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<BasicCredentialError> for CommitRuleError
impl From<BasicCredentialError> for CommitRuleError
Source§impl From<ComponentSourceError> for CommitRuleError
impl From<ComponentSourceError> for CommitRuleError
Source§impl From<ConversionError> for CommitRuleError
impl From<ConversionError> for CommitRuleError
Source§impl From<DecodeError> for CommitRuleError
impl From<DecodeError> for CommitRuleError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Source§impl From<GroupMetadataError> for CommitRuleError
impl From<GroupMetadataError> for CommitRuleError
Source§impl From<GroupMutableMetadataError> for CommitRuleError
impl From<GroupMutableMetadataError> for CommitRuleError
Source§impl From<GroupMutablePermissionsError> for CommitRuleError
impl From<GroupMutablePermissionsError> for CommitRuleError
Source§fn from(source: GroupMutablePermissionsError) -> Self
fn from(source: GroupMutablePermissionsError) -> Self
Source§impl From<InvalidVersionFormat> for CommitRuleError
impl From<InvalidVersionFormat> for CommitRuleError
Source§impl RetryableError for CommitRuleError
impl RetryableError for CommitRuleError
fn is_retryable(&self) -> bool
Auto Trait Implementations§
impl Freeze for CommitRuleError
impl !RefUnwindSafe for CommitRuleError
impl Send for CommitRuleError
impl Sync for CommitRuleError
impl Unpin for CommitRuleError
impl UnsafeUnpin for CommitRuleError
impl !UnwindSafe for CommitRuleError
Blanket Implementations§
§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read more§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read more§fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].