Enum BlockBreakingState
#[non_exhaustive]pub enum BlockBreakingState {
Idle,
Breaking {
position: BlockPos,
progress: f32,
stage: Option<u8>,
},
}Expand description
The local player’s current block-breaking operation. An unavailable player
returns None from the handle, distinct from Self::Idle.
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.
Idle
No block is currently being broken.
Breaking
The client’s current breaking target and predicted progress.
Trait Implementations§
§impl Clone for BlockBreakingState
impl Clone for BlockBreakingState
§fn clone(&self) -> BlockBreakingState
fn clone(&self) -> BlockBreakingState
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 BlockBreakingState
§impl Debug for BlockBreakingState
impl Debug for BlockBreakingState
§impl PartialEq for BlockBreakingState
impl PartialEq for BlockBreakingState
impl StructuralPartialEq for BlockBreakingState
Auto Trait Implementations§
impl Freeze for BlockBreakingState
impl RefUnwindSafe for BlockBreakingState
impl Send for BlockBreakingState
impl Sync for BlockBreakingState
impl Unpin for BlockBreakingState
impl UnsafeUnpin for BlockBreakingState
impl UnwindSafe for BlockBreakingState
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