Enum Authority
#[non_exhaustive]pub enum Authority {
LocalAuthoritative,
IntegratedServer,
DedicatedServer,
RemoteClient,
}Expand description
Which Game observes the phase; a mirror Game never fires.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LocalAuthoritative
A single-player game with no server thread; never fires today.
IntegratedServer
The server thread of a single-player or LAN world.
DedicatedServer
A dedicated server.
RemoteClient
A client of someone else’s server; never fires today.
Trait Implementations§
impl Copy for Authority
impl Eq for Authority
impl StructuralPartialEq for Authority
Auto Trait Implementations§
impl Freeze for Authority
impl RefUnwindSafe for Authority
impl Send for Authority
impl Sync for Authority
impl Unpin for Authority
impl UnsafeUnpin for Authority
impl UnwindSafe for Authority
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