Enum pgp::types::PacketLength
source · [−]Expand description
Represents the packet length.
Variants
Fixed(usize)
Indeterminated
Partial(usize)
Trait Implementations
sourceimpl Clone for PacketLength
impl Clone for PacketLength
sourcefn clone(&self) -> PacketLength
fn clone(&self) -> PacketLength
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 PacketLength
impl Debug for PacketLength
sourceimpl From<usize> for PacketLength
impl From<usize> for PacketLength
sourcefn from(val: usize) -> PacketLength
fn from(val: usize) -> PacketLength
Converts to this type from the input type.
sourceimpl PartialEq<PacketLength> for PacketLength
impl PartialEq<PacketLength> for PacketLength
sourcefn eq(&self, other: &PacketLength) -> bool
fn eq(&self, other: &PacketLength) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PacketLength) -> bool
fn ne(&self, other: &PacketLength) -> bool
This method tests for !=
.
impl Eq for PacketLength
impl StructuralEq for PacketLength
impl StructuralPartialEq for PacketLength
Auto Trait Implementations
impl RefUnwindSafe for PacketLength
impl Send for PacketLength
impl Sync for PacketLength
impl Unpin for PacketLength
impl UnwindSafe for PacketLength
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more