Struct SecretVLBytes
pub struct SecretVLBytes(/* private fields */);Available on 32-bit or 64-bit only.
Expand description
Implementations§
§impl SecretVLBytes
impl SecretVLBytes
pub fn new(vec: Vec<u8>) -> SecretVLBytes
pub fn new(vec: Vec<u8>) -> SecretVLBytes
Generate a new variable-length byte vector that implements
[ZeroizeOnDrop].
Trait Implementations§
§impl AsRef<[u8]> for SecretVLBytes
impl AsRef<[u8]> for SecretVLBytes
§impl Clone for SecretVLBytes
impl Clone for SecretVLBytes
§fn clone(&self) -> SecretVLBytes
fn clone(&self) -> SecretVLBytes
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 more§impl Debug for SecretVLBytes
impl Debug for SecretVLBytes
§impl<'de> Deserialize<'de> for SecretVLBytes
impl<'de> Deserialize<'de> for SecretVLBytes
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecretVLBytes, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecretVLBytes, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Deserialize for SecretVLBytes
impl Deserialize for SecretVLBytes
§fn tls_deserialize<R>(bytes: &mut R) -> Result<SecretVLBytes, Error>
fn tls_deserialize<R>(bytes: &mut R) -> Result<SecretVLBytes, Error>
Available on crate feature
std only.This function deserializes the
bytes from the provided a std::io::Read
and returns the populated struct. Read more§impl DeserializeBytes for SecretVLBytes
impl DeserializeBytes for SecretVLBytes
§fn tls_deserialize_bytes(bytes: &[u8]) -> Result<(SecretVLBytes, &[u8]), Error>where
SecretVLBytes: Sized,
fn tls_deserialize_bytes(bytes: &[u8]) -> Result<(SecretVLBytes, &[u8]), Error>where
SecretVLBytes: Sized,
This function deserializes the
bytes from the provided a &[u8]
and returns the populated struct, as well as the remaining slice. Read more§impl From<&[u8]> for SecretVLBytes
impl From<&[u8]> for SecretVLBytes
§fn from(slice: &[u8]) -> SecretVLBytes
fn from(slice: &[u8]) -> SecretVLBytes
Converts to this type from the input type.
§impl<const N: usize> From<&[u8; N]> for SecretVLBytes
impl<const N: usize> From<&[u8; N]> for SecretVLBytes
§fn from(slice: &[u8; N]) -> SecretVLBytes
fn from(slice: &[u8; N]) -> SecretVLBytes
Converts to this type from the input type.
§impl From<Vec<u8>> for SecretVLBytes
impl From<Vec<u8>> for SecretVLBytes
§fn from(vec: Vec<u8>) -> SecretVLBytes
fn from(vec: Vec<u8>) -> SecretVLBytes
Converts to this type from the input type.
§impl Hash for SecretVLBytes
impl Hash for SecretVLBytes
§impl Ord for SecretVLBytes
impl Ord for SecretVLBytes
§impl PartialEq for SecretVLBytes
impl PartialEq for SecretVLBytes
§impl PartialOrd for SecretVLBytes
impl PartialOrd for SecretVLBytes
§impl Serialize for SecretVLBytes
impl Serialize for SecretVLBytes
§impl Serialize for SecretVLBytes
impl Serialize for SecretVLBytes
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl Size for SecretVLBytes
impl Size for SecretVLBytes
fn tls_serialized_len(&self) -> usize
§impl Zeroize for SecretVLBytes
impl Zeroize for SecretVLBytes
impl Eq for SecretVLBytes
impl StructuralPartialEq for SecretVLBytes
Auto Trait Implementations§
impl Freeze for SecretVLBytes
impl RefUnwindSafe for SecretVLBytes
impl Send for SecretVLBytes
impl Sync for SecretVLBytes
impl Unpin for SecretVLBytes
impl UnwindSafe for SecretVLBytes
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)