pub struct EncryptionResponse {
pub shared_secret: PrefixedArray<UByte>,
pub verify_token: PrefixedArray<UByte>,
}
Fields§
§verify_token: PrefixedArray<UByte>
Implementations§
Source§impl EncryptionResponse
impl EncryptionResponse
pub fn new( shared_secret: PrefixedArray<UByte>, verify_token: PrefixedArray<UByte>, ) -> Self
Trait Implementations§
Source§impl Clone for EncryptionResponse
impl Clone for EncryptionResponse
Source§fn clone(&self) -> EncryptionResponse
fn clone(&self) -> EncryptionResponse
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 EncryptionResponse
impl Debug for EncryptionResponse
Source§impl Packet for EncryptionResponse
impl Packet for EncryptionResponse
const ID: i32 = 1i32
Source§fn to_bytes(&self) -> Vec<u8> ⓘ
fn to_bytes(&self) -> Vec<u8> ⓘ
Serializes the packet to a Vec<u8> in accordance with the minecraft protocol so that it can be sent via the network. Read more
Source§fn from_reader(reader: &mut PacketReader) -> Result<Self, Errors>
fn from_reader(reader: &mut PacketReader) -> Result<Self, Errors>
Allows the reading of packets from a PacketReader. Read more
Auto Trait Implementations§
impl Freeze for EncryptionResponse
impl RefUnwindSafe for EncryptionResponse
impl Send for EncryptionResponse
impl Sync for EncryptionResponse
impl Unpin for EncryptionResponse
impl UnwindSafe for EncryptionResponse
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