pub enum BreakTime {
Instant,
Ticks(u32),
Never,
}Expand description
When a survival dig with a constant per-tick progress finishes.
Variants§
Instant
Broken by the start packet itself (START_DESTROY_BLOCK / 1.8 attackBlock, progress ≥ 1
in one tick).
Ticks(u32)
Broken on the n-th continueDestroyBlock call, counting the one in the start tick:
the client sends STOP_DESTROY_BLOCK on that tick (n = 1 is the start tick itself).
Never
Never (progress 0: unbreakable, or a speed of 0).
Trait Implementations§
impl Copy for BreakTime
impl Eq for BreakTime
impl StructuralPartialEq for BreakTime
Auto Trait Implementations§
impl Forget for BreakTime
impl Freeze for BreakTime
impl Move for BreakTime
impl RefUnwindSafe for BreakTime
impl Send for BreakTime
impl Sync for BreakTime
impl Unpin for BreakTime
impl UnsafeUnpin for BreakTime
impl UnwindSafe for BreakTime
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