Trait sop::Load

source ·
pub trait Load<'s, S: SOP<'s>> {
    // Required method
    fn from_reader(
        sop: &'s S,
        source: &mut (dyn Read + Send + Sync)
    ) -> Result<Self>
       where Self: Sized;

    // Provided method
    fn from_bytes(sop: &'s S, source: &[u8]) -> Result<Self>
       where Self: Sized { ... }
}
Expand description

Loads objects like certs and keys.

Required Methods§

source

fn from_reader( sop: &'s S, source: &mut (dyn Read + Send + Sync) ) -> Result<Self>where Self: Sized,

Loads objects like certs and keys from the given reader.

Provided Methods§

source

fn from_bytes(sop: &'s S, source: &[u8]) -> Result<Self>where Self: Sized,

Loads objects like certs and keys from the given byte slice.

Implementors§