pub enum DebugSubscriptionData {
Show 16 variants
DedicatedServerTickTime,
Bee(BeeDebugData),
VillagerBrain(VillagerBrainDebugData),
Breeze(BreezeDebugData),
GoalSelector(GoalSelectorDebugData),
EntityPath(EntityPathDebugData),
EntityBlockIntersection(EntityBlockIntersectionDebugData),
BeeHive(BeeHiveDebugData),
PointOfInterest(PointOfInterestDebugData),
RedstoneWireOrientation(RedstoneWireOrientationDebugData),
VillageSection,
Raid(RaidDebugData),
Structure(StructureDebugData),
GameEventListener(GameEventListenerDebugData),
NeighborUpdate(NeighborUpdateDebugData),
GameEvent(GameEventDebugData),
}Expand description
A payload selected by DebugSubscriptionType.
The enum variant determines the discriminator written by
DebugSubscriptionEvent and prevents a
payload from being paired with the wrong subscription type.
Variants§
DedicatedServerTickTime
Bee(BeeDebugData)
VillagerBrain(VillagerBrainDebugData)
Breeze(BreezeDebugData)
GoalSelector(GoalSelectorDebugData)
EntityPath(EntityPathDebugData)
EntityBlockIntersection(EntityBlockIntersectionDebugData)
BeeHive(BeeHiveDebugData)
PointOfInterest(PointOfInterestDebugData)
RedstoneWireOrientation(RedstoneWireOrientationDebugData)
VillageSection
Raid(RaidDebugData)
Structure(StructureDebugData)
GameEventListener(GameEventListenerDebugData)
NeighborUpdate(NeighborUpdateDebugData)
GameEvent(GameEventDebugData)
Implementations§
Source§impl DebugSubscriptionData
impl DebugSubscriptionData
Sourcepub const fn subscription_type(&self) -> DebugSubscriptionType
pub const fn subscription_type(&self) -> DebugSubscriptionType
Returns the discriminator associated with this payload.
Trait Implementations§
Source§impl Clone for DebugSubscriptionData
impl Clone for DebugSubscriptionData
Source§fn clone(&self) -> DebugSubscriptionData
fn clone(&self) -> DebugSubscriptionData
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 moreSource§impl Debug for DebugSubscriptionData
impl Debug for DebugSubscriptionData
Source§impl From<DebugSubscriptionData> for DebugSubscriptionEvent
impl From<DebugSubscriptionData> for DebugSubscriptionEvent
Source§fn from(data: DebugSubscriptionData) -> Self
fn from(data: DebugSubscriptionData) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DebugSubscriptionData
impl PartialEq for DebugSubscriptionData
impl StructuralPartialEq for DebugSubscriptionData
Auto Trait Implementations§
impl Freeze for DebugSubscriptionData
impl RefUnwindSafe for DebugSubscriptionData
impl Send for DebugSubscriptionData
impl Sync for DebugSubscriptionData
impl Unpin for DebugSubscriptionData
impl UnsafeUnpin for DebugSubscriptionData
impl UnwindSafe for DebugSubscriptionData
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