Enum pgp::types::PacketLength
source · pub enum PacketLength {
Fixed(usize),
Indeterminate,
Partial(usize),
}
Expand description
Represents the packet length.
Variants§
Trait Implementations§
source§impl Clone for PacketLength
impl Clone for PacketLength
source§fn clone(&self) -> PacketLength
fn clone(&self) -> PacketLength
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 PacketLength
impl Debug for PacketLength
source§impl From<usize> for PacketLength
impl From<usize> for PacketLength
source§fn from(val: usize) -> PacketLength
fn from(val: usize) -> PacketLength
Converts to this type from the input type.
source§impl PartialEq for PacketLength
impl PartialEq for PacketLength
source§fn 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 ==
.impl Eq 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§
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