Trait pgp::composed::Deserializable [−][src]
pub trait Deserializable: Sized {
fn from_packets<'a>(
packets: impl Iterator<Item = Packet> + 'a
) -> Box<dyn Iterator<Item = Result<Self>> + 'a>;
fn from_bytes(bytes: impl Read) -> Result<Self> { ... }
fn from_string(input: &str) -> Result<(Self, BTreeMap<String, String>)> { ... }
fn from_string_many<'a>(
input: &'a str
) -> Result<(Box<dyn Iterator<Item = Result<Self>> + 'a>, BTreeMap<String, String>)> { ... }
fn from_armor_single<R: Read + Seek>(
input: R
) -> Result<(Self, BTreeMap<String, String>)> { ... }
fn from_armor_many<'a, R: Read + Seek + 'a>(
input: R
) -> Result<(Box<dyn Iterator<Item = Result<Self>> + 'a>, BTreeMap<String, String>)> { ... }
fn from_bytes_many<'a>(
bytes: impl Read + 'a
) -> Box<dyn Iterator<Item = Result<Self>> + 'a> { ... }
}
Required methods
Provided methods
fn from_bytes(bytes: impl Read) -> Result<Self>
fn from_bytes(bytes: impl Read) -> Result<Self>
Parse a single byte encoded composition.
Parse a single armor encoded composition.
Parse an armor encoded list of compositions.
Armored ascii data.
Armored ascii data.