pub struct EncryptionBegin {
pub shared_secret: Bytes,
pub verify_token: Bytes,
}Expand description
encryption_begin (serverbound login, id 0x01).
Fields§
sharedSecret
verify_token: BytesverifyToken
Trait Implementations§
Source§impl Clone for EncryptionBegin
impl Clone for EncryptionBegin
Source§impl Debug for EncryptionBegin
impl Debug for EncryptionBegin
Source§impl Decode for EncryptionBegin
impl Decode for EncryptionBegin
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for EncryptionBegin
impl Encode for EncryptionBegin
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<EncryptionBegin> for ServerboundLoginPacket
impl From<EncryptionBegin> for ServerboundLoginPacket
Source§fn from(p: EncryptionBegin) -> Self
fn from(p: EncryptionBegin) -> Self
Converts to this type from the input type.
Source§impl Generate for EncryptionBegin
Available on crate feature testgen only.
impl Generate for EncryptionBegin
Available on crate feature
testgen only.Source§impl Packet for EncryptionBegin
impl Packet for EncryptionBegin
Source§impl PartialEq for EncryptionBegin
impl PartialEq for EncryptionBegin
impl StructuralPartialEq for EncryptionBegin
Auto Trait Implementations§
impl !Freeze for EncryptionBegin
impl RefUnwindSafe for EncryptionBegin
impl Send for EncryptionBegin
impl Sync for EncryptionBegin
impl Unpin for EncryptionBegin
impl UnsafeUnpin for EncryptionBegin
impl UnwindSafe for EncryptionBegin
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