Struct tls_codec::SecretTlsVecU32
source · pub struct SecretTlsVecU32<T: Zeroize> { /* private fields */ }
Implementations§
source§impl<T: Zeroize> SecretTlsVecU32<T>
impl<T: Zeroize> SecretTlsVecU32<T>
sourcepub fn from_slice(slice: &[T]) -> Selfwhere
T: Clone,
pub fn from_slice(slice: &[T]) -> Selfwhere T: Clone,
Create a new TlsVec
from a slice.
sourcepub fn get(&self, index: usize) -> Option<&T>
pub fn get(&self, index: usize) -> Option<&T>
Returns a reference to an element or subslice depending on the type of index. XXX: implement SliceIndex instead
Trait Implementations§
source§impl<T: Zeroize> Default for SecretTlsVecU32<T>
impl<T: Zeroize> Default for SecretTlsVecU32<T>
source§impl<'de, T> Deserialize<'de> for SecretTlsVecU32<T>where
T: Zeroize + Deserialize<'de>,
Available on crate feature serde
only.
impl<'de, T> Deserialize<'de> for SecretTlsVecU32<T>where T: Zeroize + Deserialize<'de>,
Available on crate feature
serde
only.source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: Zeroize + Deserialize> Deserialize for SecretTlsVecU32<T>
impl<T: Zeroize + Deserialize> Deserialize for SecretTlsVecU32<T>
source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, 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 moresource§impl<T: Zeroize + DeserializeBytes> DeserializeBytes for SecretTlsVecU32<T>
impl<T: Zeroize + DeserializeBytes> DeserializeBytes for SecretTlsVecU32<T>
source§impl<T: Zeroize> Drop for SecretTlsVecU32<T>
impl<T: Zeroize> Drop for SecretTlsVecU32<T>
source§impl<T: Zeroize> From<SecretTlsVecU32<T>> for Vec<T>
impl<T: Zeroize> From<SecretTlsVecU32<T>> for Vec<T>
source§fn from(v: SecretTlsVecU32<T>) -> Self
fn from(v: SecretTlsVecU32<T>) -> Self
Converts to this type from the input type.
source§impl<T: Zeroize> FromIterator<T> for SecretTlsVecU32<T>
impl<T: Zeroize> FromIterator<T> for SecretTlsVecU32<T>
source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
fn from_iter<I>(iter: I) -> Selfwhere I: IntoIterator<Item = T>,
Creates a value from an iterator. Read more
source§impl<T: Zeroize + PartialEq> PartialEq<SecretTlsVecU32<T>> for SecretTlsVecU32<T>
impl<T: Zeroize + PartialEq> PartialEq<SecretTlsVecU32<T>> for SecretTlsVecU32<T>
source§impl<T: Zeroize + Serialize> Serialize for &SecretTlsVecU32<T>
impl<T: Zeroize + Serialize> Serialize for &SecretTlsVecU32<T>
source§impl<T> Serialize for SecretTlsVecU32<T>where
T: Zeroize + Serialize,
Available on crate feature serde
only.
impl<T> Serialize for SecretTlsVecU32<T>where T: Zeroize + Serialize,
Available on crate feature
serde
only.source§impl<T: Zeroize + Serialize> Serialize for SecretTlsVecU32<T>
impl<T: Zeroize + Serialize> Serialize for SecretTlsVecU32<T>
source§impl<T: Zeroize + Size> Size for &SecretTlsVecU32<T>
impl<T: Zeroize + Size> Size for &SecretTlsVecU32<T>
fn tls_serialized_len(&self) -> usize
source§impl<T: Zeroize + Size> Size for SecretTlsVecU32<T>
impl<T: Zeroize + Size> Size for SecretTlsVecU32<T>
fn tls_serialized_len(&self) -> usize
source§impl<T: Zeroize> Zeroize for SecretTlsVecU32<T>
impl<T: Zeroize> Zeroize for SecretTlsVecU32<T>
impl<T: Eq + Zeroize> Eq for SecretTlsVecU32<T>
impl<T: Zeroize> StructuralEq for SecretTlsVecU32<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SecretTlsVecU32<T>where T: RefUnwindSafe,
impl<T> Send for SecretTlsVecU32<T>where T: Send,
impl<T> Sync for SecretTlsVecU32<T>where T: Sync,
impl<T> Unpin for SecretTlsVecU32<T>where T: Unpin,
impl<T> UnwindSafe for SecretTlsVecU32<T>where T: UnwindSafe,
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