Struct tls_codec::TlsByteVecU32
source · [−]pub struct TlsByteVecU32 { /* private fields */ }
Implementations
sourceimpl TlsByteVecU32
impl TlsByteVecU32
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 TlsByteVecU32
impl Clone for TlsByteVecU32
sourcefn clone(&self) -> TlsByteVecU32
fn clone(&self) -> TlsByteVecU32
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 TlsByteVecU32
impl Debug for TlsByteVecU32
sourceimpl Default for TlsByteVecU32
impl Default for TlsByteVecU32
sourceimpl Deserialize for TlsByteVecU32
impl Deserialize for TlsByteVecU32
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 TlsByteVecU32
impl<'de> Deserialize<'de> for TlsByteVecU32
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<TlsByteVecU32> for Vec<u8>
impl From<TlsByteVecU32> for Vec<u8>
sourcefn from(v: TlsByteVecU32) -> Self
fn from(v: TlsByteVecU32) -> Self
Performs the conversion.
sourceimpl FromIterator<u8> for TlsByteVecU32
impl FromIterator<u8> for TlsByteVecU32
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 TlsByteVecU32
impl Hash for TlsByteVecU32
sourceimpl Index<usize> for TlsByteVecU32
impl Index<usize> for TlsByteVecU32
sourceimpl IndexMut<usize> for TlsByteVecU32
impl IndexMut<usize> for TlsByteVecU32
sourceimpl PartialEq<TlsByteVecU32> for TlsByteVecU32
impl PartialEq<TlsByteVecU32> for TlsByteVecU32
sourceimpl Serialize for TlsByteVecU32
impl Serialize for TlsByteVecU32
sourceimpl Serialize for TlsByteVecU32
impl Serialize for TlsByteVecU32
sourceimpl Serialize for &TlsByteVecU32
impl Serialize for &TlsByteVecU32
sourceimpl Size for TlsByteVecU32
impl Size for TlsByteVecU32
fn tls_serialized_len(&self) -> usize
sourceimpl 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
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