pub struct BlockOutcome {
pub user_id: Uuid,
pub removed_leaves: Vec<u32>,
pub amk_version: AmkVersion,
pub removal: Option<RemoveOutcome>,
}Expand description
The outcome of a block_user ceremony.
Deliberately distinguishes “removed them” from “they were not here”, because the two have different consequences for the caller: only the first produces a commit to deliver and a new epoch to publish keys for.
Fields§
§user_id: UuidThe user that was blocked.
removed_leaves: Vec<u32>The leaf indices removed — one per device the blocked user had in this album. Empty iff they were not a member.
amk_version: AmkVersionThe epoch new writes are authorized under after the block. Bumped by exactly one when a removal happened; the unchanged ceiling otherwise.
removal: Option<RemoveOutcome>The Remove commit + the fresh epoch’s key delivery, or None when the blocked user held
no leaves in this album (nothing to commit, no epoch burnt).
Implementations§
Source§impl BlockOutcome
impl BlockOutcome
Sourcepub fn already_absent(&self) -> bool
pub fn already_absent(&self) -> bool
Whether the blocked user was already absent from this album, so no MLS commit was produced and the epoch did not move.
Auto Trait Implementations§
impl Freeze for BlockOutcome
impl RefUnwindSafe for BlockOutcome
impl Send for BlockOutcome
impl Sync for BlockOutcome
impl Unpin for BlockOutcome
impl UnsafeUnpin for BlockOutcome
impl UnwindSafe for BlockOutcome
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