#[non_exhaustive]pub enum Version {
V1_8,
V1_12,
V1_16_5,
V26_1,
V26_2,
V26_3,
}Expand description
Protocol version of the connection; selects the vanilla rules being reproduced.
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.
V1_8
1.8 – 1.8.9 (protocol 47).
V1_12
1.12 – 1.12.2 (protocol 335 – 340).
V1_16_5
1.16.4 – 1.16.5 (protocol 754).
V26_1
26.1 – 26.1.2 (protocol 775).
V26_2
26.2 (protocol 776).
V26_3
26.3 (protocol 777).
Implementations§
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Forget for Version
impl Freeze for Version
impl Move for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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