Struct tls_codec::TlsByteVecU8
source · pub struct TlsByteVecU8 { /* private fields */ }
Implementations§
source§impl TlsByteVecU8
impl TlsByteVecU8
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 TlsByteVecU8
impl Borrow<[u8]> for TlsByteVecU8
source§impl Clone for TlsByteVecU8
impl Clone for TlsByteVecU8
source§fn clone(&self) -> TlsByteVecU8
fn clone(&self) -> TlsByteVecU8
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 TlsByteVecU8
impl Debug for TlsByteVecU8
source§impl Default for TlsByteVecU8
impl Default for TlsByteVecU8
source§impl<'de> Deserialize<'de> for TlsByteVecU8
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for TlsByteVecU8
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 TlsByteVecU8
impl Deserialize for TlsByteVecU8
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 TlsByteVecU8
impl DeserializeBytes for TlsByteVecU8
source§impl From<&[u8]> for TlsByteVecU8
impl From<&[u8]> for TlsByteVecU8
source§impl From<TlsByteVecU8> for Vec<u8>
impl From<TlsByteVecU8> for Vec<u8>
source§fn from(v: TlsByteVecU8) -> Self
fn from(v: TlsByteVecU8) -> Self
Converts to this type from the input type.
source§impl FromIterator<u8> for TlsByteVecU8
impl FromIterator<u8> for TlsByteVecU8
source§impl Hash for TlsByteVecU8
impl Hash for TlsByteVecU8
source§impl Index<usize> for TlsByteVecU8
impl Index<usize> for TlsByteVecU8
source§impl IndexMut<usize> for TlsByteVecU8
impl IndexMut<usize> for TlsByteVecU8
source§impl PartialEq<TlsByteVecU8> for TlsByteVecU8
impl PartialEq<TlsByteVecU8> for TlsByteVecU8
source§impl Serialize for &TlsByteVecU8
impl Serialize for &TlsByteVecU8
source§impl Serialize for TlsByteVecU8
impl Serialize for TlsByteVecU8
source§impl Serialize for TlsByteVecU8
Available on crate feature serde
only.
impl Serialize for TlsByteVecU8
Available on crate feature
serde
only.source§impl Size for &TlsByteVecU8
impl Size for &TlsByteVecU8
fn tls_serialized_len(&self) -> usize
source§impl Size for TlsByteVecU8
impl Size for TlsByteVecU8
fn tls_serialized_len(&self) -> usize
impl Eq for TlsByteVecU8
impl StructuralEq for TlsByteVecU8
Auto Trait Implementations§
impl RefUnwindSafe for TlsByteVecU8
impl Send for TlsByteVecU8
impl Sync for TlsByteVecU8
impl Unpin for TlsByteVecU8
impl UnwindSafe for TlsByteVecU8
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