Struct TlsVarInt
pub struct TlsVarInt(/* private fields */);Available on 32-bit or 64-bit only.
Expand description
Variable-length encoded unsigned integer as defined in RFC 9000.
Implementations§
Trait Implementations§
impl Copy for TlsVarInt
§impl Deserialize for TlsVarInt
impl Deserialize for TlsVarInt
§fn tls_deserialize<R>(bytes: &mut R) -> Result<TlsVarInt, Error>where
R: Read,
fn tls_deserialize<R>(bytes: &mut R) -> Result<TlsVarInt, Error>where
R: Read,
Available on crate feature
std only.This function deserializes the
bytes from the provided a std::io::Read
and returns the populated struct. Read more§impl DeserializeBytes for TlsVarInt
impl DeserializeBytes for TlsVarInt
impl Eq for TlsVarInt
§impl Ord for TlsVarInt
impl Ord for TlsVarInt
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialOrd for TlsVarInt
impl PartialOrd for TlsVarInt
§impl Serialize for TlsVarInt
impl Serialize for TlsVarInt
§impl SerializeBytes for TlsVarInt
impl SerializeBytes for TlsVarInt
impl StructuralPartialEq for TlsVarInt
Auto Trait Implementations§
impl Freeze for TlsVarInt
impl RefUnwindSafe for TlsVarInt
impl Send for TlsVarInt
impl Sync for TlsVarInt
impl Unpin for TlsVarInt
impl UnsafeUnpin for TlsVarInt
impl UnwindSafe for TlsVarInt
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more