pub struct EncryptionRequest {
pub server_id: String,
pub public_key: PrefixedArray<UByte>,
pub verify_token: PrefixedArray<UByte>,
pub should_authenticate: bool,
}Fields§
§server_id: String§public_key: PrefixedArray<UByte>§verify_token: PrefixedArray<UByte>§should_authenticate: boolImplementations§
Source§impl EncryptionRequest
impl EncryptionRequest
pub fn new( server_id: String, public_key: PrefixedArray<UByte>, verify_token: PrefixedArray<UByte>, should_authenticate: bool, ) -> Self
Trait Implementations§
Source§impl Clone for EncryptionRequest
impl Clone for EncryptionRequest
Source§fn clone(&self) -> EncryptionRequest
fn clone(&self) -> EncryptionRequest
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 EncryptionRequest
impl Debug for EncryptionRequest
Source§impl Packet for EncryptionRequest
impl Packet for EncryptionRequest
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 EncryptionRequest
impl RefUnwindSafe for EncryptionRequest
impl Send for EncryptionRequest
impl Sync for EncryptionRequest
impl Unpin for EncryptionRequest
impl UnwindSafe for EncryptionRequest
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