Holds a UserID packet.
See Section 5.11 of RFC 4880 for details.
Returns a new
Gets the user ID packet's value.
pub fn set_userid_from_bytes(&mut self, userid: &[u8])[src]
Sets the user ID packet's value from a byte sequence.
pub fn set_userid(&mut self, userid: &str)[src]
Sets the user ID packet's value from a UTF-8 encoded string.
UserID struct to a
Writes a serialized version of the specified
UserID packet to
Serializes the packet to a vector.
fn from_reader<R: 'a + Read>(reader: R) -> Result<Self>[src]
Reads from the given file. Read more
Reads from the given slice. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from
source. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
Feeds a slice of this type into the given [
Hasher]. Read more
type Error = Infallible
The type returned in the event of a conversion error.