pub enum SerializationInfo {
PacketType(u8),
UseEncryption([u8; 32], [u8; 32], Option<[u8; 32]>),
UseAuthentication([u8; 32], Option<[u8; 32]>),
None,
}
Expand description
Information about the data to serialize or deserialize
§Variants
PacketType
- Indicates which packet type the data isUseEncryption
- Indicates that the data is/must be encrypted and which keys to use (key0, key1, bucket_key)UseAuthentication
- Indicates that the data is/must be authenticated and which keys to use (key0, bucket_key)None
- No info is needed
Variants§
PacketType(u8)
UseEncryption([u8; 32], [u8; 32], Option<[u8; 32]>)
UseAuthentication([u8; 32], Option<[u8; 32]>)
None
Trait Implementations§
Source§impl Clone for SerializationInfo
impl Clone for SerializationInfo
Source§fn clone(&self) -> SerializationInfo
fn clone(&self) -> SerializationInfo
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 SerializationInfo
impl Debug for SerializationInfo
impl Copy for SerializationInfo
Auto Trait Implementations§
impl Freeze for SerializationInfo
impl RefUnwindSafe for SerializationInfo
impl Send for SerializationInfo
impl Sync for SerializationInfo
impl Unpin for SerializationInfo
impl UnwindSafe for SerializationInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more