Struct sequoia_openpgp::packet::prelude::Literal [−][src]
pub struct Literal { /* fields omitted */ }
Expand description
Holds a literal packet.
A literal packet contains unstructured data. Since the size can
be very large, it is advised to process messages containing such
packets using a PacketParser
or a PacketPileParser
and process
the data in a streaming manner rather than the using the
PacketPile::from_file
and related interfaces.
See Section 5.9 of RFC 4880 for details.
Implementations
Returns a new Literal
packet.
Gets the Literal packet’s content disposition.
Sets the Literal packet’s content disposition.
Gets the literal packet’s filename.
Note: when a literal data packet is protected by a signature, only the literal data packet’s body is protected, not the meta-data. As such, this field should normally be ignored.
Sets the literal packet’s filename field.
The standard does not specify the encoding. Filenames must not be longer than 255 bytes.
Note: when a literal data packet is protected by a signature, only the literal data packet’s body is protected, not the meta-data. As such, this field should not be used.
Gets the literal packet’s date field.
Note: when a literal data packet is protected by a signature, only the literal data packet’s body is protected, not the meta-data. As such, this field should normally be ignored.
pub fn set_date<T>(&mut self, timestamp: T) -> Result<Option<SystemTime>> where
T: Into<Option<SystemTime>>,
[src]
pub fn set_date<T>(&mut self, timestamp: T) -> Result<Option<SystemTime>> where
T: Into<Option<SystemTime>>,
[src]Sets the literal packet’s date field.
Note: when a literal data packet is protected by a signature, only the literal data packet’s body is protected, not the meta-data. As such, this field should not be used.
This packet implements the unprocessed container interface.
Container packets like this one can contain unprocessed data.
Gets a reference to the this packet’s body.
Trait Implementations
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
Reads from the given reader.
Auto Trait Implementations
impl !RefUnwindSafe for Literal
impl !UnwindSafe for Literal
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self