pub struct ServerOwnershipManager;Implementations§
Source§impl ServerOwnershipManager
impl ServerOwnershipManager
Sourcepub fn claim_orphaned(ctx: &CellServerCtx) -> Result<(), PersistError>
pub fn claim_orphaned(ctx: &CellServerCtx) -> Result<(), PersistError>
Scan all server_owned items and reassign any referencing dead/empty servers.
Sourcepub fn watch_peer_deaths(ctx: &CellServerCtx) -> SubscriptionGuard
pub fn watch_peer_deaths(ctx: &CellServerCtx) -> SubscriptionGuard
Watch for Server entity removals and redistribute orphaned items. Returns a SubscriptionGuard that must be kept alive.
Auto Trait Implementations§
impl Freeze for ServerOwnershipManager
impl RefUnwindSafe for ServerOwnershipManager
impl Send for ServerOwnershipManager
impl Sync for ServerOwnershipManager
impl Unpin for ServerOwnershipManager
impl UnsafeUnpin for ServerOwnershipManager
impl UnwindSafe for ServerOwnershipManager
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<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