Struct tls_codec::TlsByteVecU32
source · pub struct TlsByteVecU32 { /* private fields */ }
Implementations§
source§impl TlsByteVecU32
impl TlsByteVecU32
sourcepub fn from_slice(slice: &[u8]) -> Selfwhere
u8: Clone,
pub fn from_slice(slice: &[u8]) -> Selfwhere u8: Clone,
Create a new TlsVec
from a slice.
sourcepub fn get(&self, index: usize) -> Option<&u8>
pub fn get(&self, index: usize) -> Option<&u8>
Returns a reference to an element or subslice depending on the type of index. XXX: implement SliceIndex instead
Trait Implementations§
source§impl Borrow<[u8]> for TlsByteVecU32
impl Borrow<[u8]> for TlsByteVecU32
source§impl Clone for TlsByteVecU32
impl Clone for TlsByteVecU32
source§fn clone(&self) -> TlsByteVecU32
fn clone(&self) -> TlsByteVecU32
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 TlsByteVecU32
impl Debug for TlsByteVecU32
source§impl Default for TlsByteVecU32
impl Default for TlsByteVecU32
source§impl<'de> Deserialize<'de> for TlsByteVecU32
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for TlsByteVecU32
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 Deserialize for TlsByteVecU32
impl Deserialize for TlsByteVecU32
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 DeserializeBytes for TlsByteVecU32
impl DeserializeBytes for TlsByteVecU32
source§impl From<&[u8]> for TlsByteVecU32
impl From<&[u8]> for TlsByteVecU32
source§impl From<TlsByteVecU32> for Vec<u8>
impl From<TlsByteVecU32> for Vec<u8>
source§fn from(v: TlsByteVecU32) -> Self
fn from(v: TlsByteVecU32) -> Self
Converts to this type from the input type.
source§impl FromIterator<u8> for TlsByteVecU32
impl FromIterator<u8> for TlsByteVecU32
source§impl Hash for TlsByteVecU32
impl Hash for TlsByteVecU32
source§impl Index<usize> for TlsByteVecU32
impl Index<usize> for TlsByteVecU32
source§impl IndexMut<usize> for TlsByteVecU32
impl IndexMut<usize> for TlsByteVecU32
source§impl PartialEq<TlsByteVecU32> for TlsByteVecU32
impl PartialEq<TlsByteVecU32> for TlsByteVecU32
source§impl Serialize for &TlsByteVecU32
impl Serialize for &TlsByteVecU32
source§impl Serialize for TlsByteVecU32
Available on crate feature serde
only.
impl Serialize for TlsByteVecU32
Available on crate feature
serde
only.source§impl Serialize for TlsByteVecU32
impl Serialize for TlsByteVecU32
source§impl Size for &TlsByteVecU32
impl Size for &TlsByteVecU32
fn tls_serialized_len(&self) -> usize
source§impl Size for TlsByteVecU32
impl Size for TlsByteVecU32
fn tls_serialized_len(&self) -> usize
impl Eq for TlsByteVecU32
impl StructuralEq for TlsByteVecU32
Auto Trait Implementations§
impl RefUnwindSafe for TlsByteVecU32
impl Send for TlsByteVecU32
impl Sync for TlsByteVecU32
impl Unpin for TlsByteVecU32
impl UnwindSafe for TlsByteVecU32
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