Struct tls_codec::TlsByteVecU16
source · [−]pub struct TlsByteVecU16 { /* private fields */ }
Implementations
sourceimpl TlsByteVecU16
impl TlsByteVecU16
sourcepub fn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Get a slice to the raw vector.
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
sourceimpl Clone for TlsByteVecU16
impl Clone for TlsByteVecU16
sourcefn clone(&self) -> TlsByteVecU16
fn clone(&self) -> TlsByteVecU16
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TlsByteVecU16
impl Debug for TlsByteVecU16
sourceimpl Default for TlsByteVecU16
impl Default for TlsByteVecU16
sourceimpl Deserialize for TlsByteVecU16
impl Deserialize for TlsByteVecU16
sourcefn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This is supported on crate feature
std
only.This function deserializes the bytes
from the provided a std::io::Read
and returns the populated struct. Read more
sourceimpl<'de> Deserialize<'de> for TlsByteVecU16
impl<'de> Deserialize<'de> for TlsByteVecU16
sourcefn 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
sourceimpl From<TlsByteVecU16> for Vec<u8>
impl From<TlsByteVecU16> for Vec<u8>
sourcefn from(v: TlsByteVecU16) -> Self
fn from(v: TlsByteVecU16) -> Self
Performs the conversion.
sourceimpl FromIterator<u8> for TlsByteVecU16
impl FromIterator<u8> for TlsByteVecU16
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = u8>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = u8>,
Creates a value from an iterator. Read more
sourceimpl Hash for TlsByteVecU16
impl Hash for TlsByteVecU16
sourceimpl Index<usize> for TlsByteVecU16
impl Index<usize> for TlsByteVecU16
sourceimpl IndexMut<usize> for TlsByteVecU16
impl IndexMut<usize> for TlsByteVecU16
sourceimpl PartialEq<TlsByteVecU16> for TlsByteVecU16
impl PartialEq<TlsByteVecU16> for TlsByteVecU16
sourceimpl Serialize for TlsByteVecU16
impl Serialize for TlsByteVecU16
sourceimpl Serialize for TlsByteVecU16
impl Serialize for TlsByteVecU16
sourceimpl Serialize for &TlsByteVecU16
impl Serialize for &TlsByteVecU16
sourceimpl Size for TlsByteVecU16
impl Size for TlsByteVecU16
fn tls_serialized_len(&self) -> usize
sourceimpl Size for &TlsByteVecU16
impl Size for &TlsByteVecU16
fn tls_serialized_len(&self) -> usize
impl Eq for TlsByteVecU16
impl StructuralEq for TlsByteVecU16
Auto Trait Implementations
impl RefUnwindSafe for TlsByteVecU16
impl Send for TlsByteVecU16
impl Sync for TlsByteVecU16
impl Unpin for TlsByteVecU16
impl UnwindSafe for TlsByteVecU16
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more