pub struct DeckStateCache {
pub built: u64,
/* private fields */
}Expand description
The per-facet states FacetDeck::state_json_rolling serves inactive tabs from.
One per publishing host; Default = empty (the first call builds everything).
The map is MOVED into the returned state, not cloned (a clone of 80 tabs’ JSON trees
cost as much as building them), so the host hands it back with
FacetDeck::return_rolling after serialising — or the next call rebuilds every tab
(correct, only slow).
Fields§
§built: u64Facet state_json builds made through this cache (the honesty counter).
Trait Implementations§
Source§impl Debug for DeckStateCache
impl Debug for DeckStateCache
Auto Trait Implementations§
impl Freeze for DeckStateCache
impl RefUnwindSafe for DeckStateCache
impl Send for DeckStateCache
impl Sync for DeckStateCache
impl Unpin for DeckStateCache
impl UnsafeUnpin for DeckStateCache
impl UnwindSafe for DeckStateCache
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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