pub(in server) struct DomainSwitchJob {
server: Weak<Server>,
player: Arc<Player>,
source_domain: String,
source_data: Option<Arc<PersistentPlayerData>>,
target_domain: String,
pending_token: PendingWorldChangeToken,
residence_token: DomainResidenceToken,
phase: DomainSwitchJobPhase,
}Fields§
§server: Weak<Server>§player: Arc<Player>§source_domain: String§source_data: Option<Arc<PersistentPlayerData>>§target_domain: String§pending_token: PendingWorldChangeToken§residence_token: DomainResidenceToken§phase: DomainSwitchJobPhaseImplementations§
Source§impl DomainSwitchJob
impl DomainSwitchJob
pub(in server) fn new( server: &Arc<Server>, player: Arc<Player>, source_domain: String, source_data: PersistentPlayerData, target_domain: String, target_world: Option<Arc<World>>, pending_token: PendingWorldChangeToken, residence_token: DomainResidenceToken, ) -> Self
fn abort_async_task(&self)
fn finish_source_disconnect(&mut self, error: Option<&str>) -> JobPoll
fn phase_after_storage( server: &Server, target_domain: &str, state: UnpreparedDomainPlayerState, ) -> Result<DomainSwitchJobPhase, String>
fn state_after_spawn_search( world: Arc<World>, data: UnpreparedDomainPlayerData, spawn: PreparedSpawn, ) -> Result<DomainPlayerState, String>
fn commit_target_state( &mut self, server: &Arc<Server>, state: DomainPlayerState, ) -> JobPoll
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DomainSwitchJob
impl !Sync for DomainSwitchJob
impl !UnwindSafe for DomainSwitchJob
impl Freeze for DomainSwitchJob
impl Send for DomainSwitchJob
impl Unpin for DomainSwitchJob
impl UnsafeUnpin for DomainSwitchJob
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<>>