pub(super) struct KnownPlayerCacheState {
players: KnownPlayers,
generation: u64,
worker_running: bool,
closed: bool,
}Fields§
§players: KnownPlayers§generation: u64§worker_running: bool§closed: boolImplementations§
Source§impl KnownPlayerCacheState
impl KnownPlayerCacheState
pub(super) const fn new(players: KnownPlayers) -> Self
pub(super) fn record(&mut self, uuid: Uuid, name: String) -> bool
pub(super) const fn mark_changed(&mut self) -> bool
pub(super) fn snapshot(&self) -> (KnownPlayers, u64)
pub(super) const fn is_current(&self, generation: u64) -> bool
pub(super) const fn finish_save( &mut self, generation: u64, ) -> KnownPlayerSaveStep
pub(super) fn close_if_idle(&mut self) -> Option<KnownPlayers>
Auto Trait Implementations§
impl Freeze for KnownPlayerCacheState
impl RefUnwindSafe for KnownPlayerCacheState
impl Send for KnownPlayerCacheState
impl Sync for KnownPlayerCacheState
impl Unpin for KnownPlayerCacheState
impl UnsafeUnpin for KnownPlayerCacheState
impl UnwindSafe for KnownPlayerCacheState
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 moreWraps this value in an
Arc<SyncMutex<>>