Enum pgp::packet::UserAttribute [−][src]
pub enum UserAttribute {
Image {
packet_version: Version,
header: Vec<u8>,
data: Vec<u8>,
},
Unknown {
packet_version: Version,
typ: u8,
data: Vec<u8>,
},
}
Expand description
User Attribute Packet https://tools.ietf.org/html/rfc4880.html#section-5.12
Variants
Implementations
Parses a UserAttribute
packet from the given slice.
pub fn sign<F>(
&self,
key: &impl SecretKeyTrait,
key_pw: F
) -> Result<SignedUserAttribute> where
F: FnOnce() -> String,
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for UserAttribute
impl Send for UserAttribute
impl Sync for UserAttribute
impl Unpin for UserAttribute
impl UnwindSafe for UserAttribute
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self