Enum TagsUpdateCause
#[non_exhaustive]pub enum TagsUpdateCause {
ServerDataLoad {
reload: bool,
},
ClientPacketReceived {
integrated_server: bool,
},
}Expand description
What made a tags_updated notice fire (TagsUpdatedEvent’s two subclasses).
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.
ServerDataLoad
TagsUpdatedEvent.ServerDataLoad: a server built its data tables.
ClientPacketReceived
TagsUpdatedEvent.ClientPacketReceived: a client applied the tags its server sent.
Implementations§
§impl TagsUpdateCause
impl TagsUpdateCause
pub fn should_update_static_data(self) -> bool
pub fn should_update_static_data(self) -> bool
TagsUpdatedEvent.shouldUpdateStaticData: whether to update static data, which single
player’s two threads share, so that there only the server side updates it.
Trait Implementations§
§impl Clone for TagsUpdateCause
impl Clone for TagsUpdateCause
§fn clone(&self) -> TagsUpdateCause
fn clone(&self) -> TagsUpdateCause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TagsUpdateCause
§impl Debug for TagsUpdateCause
impl Debug for TagsUpdateCause
impl Eq for TagsUpdateCause
§impl PartialEq for TagsUpdateCause
impl PartialEq for TagsUpdateCause
impl StructuralPartialEq for TagsUpdateCause
Auto Trait Implementations§
impl Freeze for TagsUpdateCause
impl RefUnwindSafe for TagsUpdateCause
impl Send for TagsUpdateCause
impl Sync for TagsUpdateCause
impl Unpin for TagsUpdateCause
impl UnsafeUnpin for TagsUpdateCause
impl UnwindSafe for TagsUpdateCause
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