pub struct Expiry {
pub removed_fabric: Option<NonZeroU8>,
}Expand description
The outcome of a fail-safe expiry.
Fields§
§removed_fabric: Option<NonZeroU8>The fabric the rollback removed, if any.
Implementations§
Source§impl Expiry
impl Expiry
Sourcepub fn notify(&self, ctx: impl HandlerContext)
pub fn notify(&self, ctx: impl HandlerContext)
Broadcast the expiry to the handlers of ctx: LifecycleOp::FailSafeExpiry,
then the removal of the fabric the rollback dropped, if any.
The broadcasts run the handlers inline, so this must NOT be called while holding the Matter state lock.
The expiry removes the PASE sessions, so the caller also has to tell the
waiters on them, with Transport::notify_session_removed.
Trait Implementations§
impl Copy for Expiry
impl Eq for Expiry
impl StructuralPartialEq for Expiry
Auto Trait Implementations§
impl Forget for Expiry
impl Freeze for Expiry
impl Move for Expiry
impl RefUnwindSafe for Expiry
impl Send for Expiry
impl Sync for Expiry
impl Unpin for Expiry
impl UnsafeUnpin for Expiry
impl UnwindSafe for Expiry
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 moreSource§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
Source§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.