Enum ark_api::applet::DetachPlayerTarget
source · pub enum DetachPlayerTarget {
World(String),
Server(ServerId),
Player(ExternalUserId),
}Expand description
Higher level equivalent of the DetachPlayerTargetType used to prevent misuse of the ffi api.
Duplicated in the module-host
Variants§
World(String)
Detach the player to a specific world. The string corresponds to the module/launch arguments of the world.
Server(ServerId)
Detach the player to a specific server
Player(ExternalUserId)
Detach the player to a specific player
Trait Implementations§
source§impl Clone for DetachPlayerTarget
impl Clone for DetachPlayerTarget
source§fn clone(&self) -> DetachPlayerTarget
fn clone(&self) -> DetachPlayerTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DetachPlayerTarget
impl Send for DetachPlayerTarget
impl Sync for DetachPlayerTarget
impl Unpin for DetachPlayerTarget
impl UnwindSafe for DetachPlayerTarget
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