pub enum MembershipError {
NoSession(BufferId),
SlotOutOfRange {
slot: usize,
arity: usize,
},
NotParticipant(BufferId),
EngineRejected(DiffEngineError),
}Expand description
D.8.d (2026-05-31): errors the subsystem’s membership
API returns when mutating a session’s participant set.
Distinct from [DiffEngineError] (which is the engine
crate’s surface) so callers don’t have to import
lattice_diff just to pattern-match on
add_participant failures. The engine’s cap on arity
(N ≥ 4 rejected in v1) surfaces here as
EngineRejected(DiffEngineError::Unsupported{...}).
Variants§
Trait Implementations§
Source§impl Debug for MembershipError
impl Debug for MembershipError
Source§impl Display for MembershipError
impl Display for MembershipError
Source§impl Error for MembershipError
impl Error for MembershipError
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<DiffEngineError> for MembershipError
impl From<DiffEngineError> for MembershipError
Source§fn from(source: DiffEngineError) -> Self
fn from(source: DiffEngineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MembershipError
impl RefUnwindSafe for MembershipError
impl Send for MembershipError
impl Sync for MembershipError
impl Unpin for MembershipError
impl UnsafeUnpin for MembershipError
impl UnwindSafe for MembershipError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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