pub struct EncryptedPacket {
pub payload: Vec<u8>,
}
Expand description
Packets are encrypted and sent in this form.
Serialized form:
Length | Content |
---|---|
2 | Length of encrypted payload in BigEndian |
variable | Encrypted payload (max 2048) |
Fields§
§payload: Vec<u8>
Encrypted payload
Trait Implementations§
Source§impl Clone for EncryptedPacket
impl Clone for EncryptedPacket
Source§fn clone(&self) -> EncryptedPacket
fn clone(&self) -> EncryptedPacket
Returns a copy 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 EncryptedPacket
impl Debug for EncryptedPacket
Source§impl FromBytes for EncryptedPacket
impl FromBytes for EncryptedPacket
Source§fn from_bytes(i: &[u8]) -> IResult<&[u8], EncryptedPacket, (&[u8], ErrorKind)>
fn from_bytes(i: &[u8]) -> IResult<&[u8], EncryptedPacket, (&[u8], ErrorKind)>
Deserialize struct using
nom
from raw bytesSource§impl PartialEq for EncryptedPacket
impl PartialEq for EncryptedPacket
Source§impl ToBytes for EncryptedPacket
impl ToBytes for EncryptedPacket
impl StructuralPartialEq for EncryptedPacket
Auto Trait Implementations§
impl Freeze for EncryptedPacket
impl RefUnwindSafe for EncryptedPacket
impl Send for EncryptedPacket
impl Sync for EncryptedPacket
impl Unpin for EncryptedPacket
impl UnwindSafe for EncryptedPacket
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