pub struct HandshakeSpec {
pub version: VarInt,
pub server_address: String,
pub server_port: u16,
pub next_state: HandshakeNextState,
}
Fields§
§version: VarInt
§server_address: String
§server_port: u16
§next_state: HandshakeNextState
Trait Implementations§
Source§impl Clone for HandshakeSpec
impl Clone for HandshakeSpec
Source§fn clone(&self) -> HandshakeSpec
fn clone(&self) -> HandshakeSpec
Returns a duplicate of the value. Read more
1.0.0 · 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 HandshakeSpec
impl Debug for HandshakeSpec
Source§impl Deserialize for HandshakeSpec
impl Deserialize for HandshakeSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(VarInt, String, u16, HandshakeNextState)> for HandshakeSpec
impl From<(VarInt, String, u16, HandshakeNextState)> for HandshakeSpec
Source§impl From<HandshakeSpec> for (VarInt, String, u16, HandshakeNextState)
impl From<HandshakeSpec> for (VarInt, String, u16, HandshakeNextState)
Source§fn from(other: HandshakeSpec) -> Self
fn from(other: HandshakeSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HandshakeSpec
impl PartialEq for HandshakeSpec
Source§impl Serialize for HandshakeSpec
impl Serialize for HandshakeSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for HandshakeSpec
Auto Trait Implementations§
impl Freeze for HandshakeSpec
impl RefUnwindSafe for HandshakeSpec
impl Send for HandshakeSpec
impl Sync for HandshakeSpec
impl Unpin for HandshakeSpec
impl UnwindSafe for HandshakeSpec
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