pub enum EventRights<'a, R: BattleRules> {
None,
Server,
Team(&'a TeamId<R>),
Teams(Vec<&'a TeamId<R>>),
}Expand description
Types of access rights that might be required in order to fire an event.
Variants§
None
Everyone can fire the event.
Server
Only the server can fire the event.
Team(&'a TeamId<R>)
Only the server or a player with rights to this team can fire the event.
Teams(Vec<&'a TeamId<R>>)
Only the server or a player with rights to all of these teams can fire the event.
Trait Implementations§
Source§impl<'a, R: BattleRules> Debug for EventRights<'a, R>
impl<'a, R: BattleRules> Debug for EventRights<'a, R>
Source§impl<'a, 'b, R: BattleRules> PartialEq<EventRights<'b, R>> for EventRights<'a, R>
impl<'a, 'b, R: BattleRules> PartialEq<EventRights<'b, R>> for EventRights<'a, R>
impl<'a, R: BattleRules> Eq for EventRights<'a, R>
Auto Trait Implementations§
impl<'a, R> Freeze for EventRights<'a, R>
impl<'a, R> RefUnwindSafe for EventRights<'a, R>
impl<'a, R> Send for EventRights<'a, R>
impl<'a, R> Sync for EventRights<'a, R>
impl<'a, R> Unpin for EventRights<'a, R>
impl<'a, R> UnsafeUnpin for EventRights<'a, R>
impl<'a, R> UnwindSafe for EventRights<'a, R>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.