Enum PayloadPhase
pub enum PayloadPhase {
Configuration,
Play,
Common,
}Expand description
The phases a payload is declared for.
Variants§
Implementations§
§impl PayloadPhase
impl PayloadPhase
pub const fn permits(self, phase: ConnectionPhase) -> bool
pub const fn permits(self, phase: ConnectionPhase) -> bool
Whether a payload declared for these phases may travel in phase.
Trait Implementations§
§impl Clone for PayloadPhase
impl Clone for PayloadPhase
§fn clone(&self) -> PayloadPhase
fn clone(&self) -> PayloadPhase
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 PayloadPhase
§impl Debug for PayloadPhase
impl Debug for PayloadPhase
impl Eq for PayloadPhase
§impl Hash for PayloadPhase
impl Hash for PayloadPhase
§impl PartialEq for PayloadPhase
impl PartialEq for PayloadPhase
impl StructuralPartialEq for PayloadPhase
Auto Trait Implementations§
impl Freeze for PayloadPhase
impl RefUnwindSafe for PayloadPhase
impl Send for PayloadPhase
impl Sync for PayloadPhase
impl Unpin for PayloadPhase
impl UnsafeUnpin for PayloadPhase
impl UnwindSafe for PayloadPhase
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