Struct samotop_smime::SMime [−][src]
pub struct SMime<'a> { /* fields omitted */ }
Implementations
pub fn encrypt_and_sign<W: Write + Sync + Send + 'a>(
target: W,
my_key: &str,
my_cert: &str,
her_cert: &str,
their_certs: Vec<&str>
) -> Result<Self>
pub fn sign_and_encrypt<W: Write + Sync + Send + 'a>(
target: W,
my_key: &str,
my_cert: &str,
her_cert: &str,
their_certs: Vec<&str>
) -> Result<Self>
pub fn decrypt_and_verify<W: Write + Sync + Send + 'a>(
target: W,
her_key: &str
) -> Result<Self>
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SMime<'a>
impl<'a> !UnwindSafe for SMime<'a>
Blanket Implementations
impl<W> AsyncWriteExt for W where
W: AsyncWrite + ?Sized,
impl<W> AsyncWriteExt for W where
W: AsyncWrite + ?Sized,
Writes some bytes into the byte stream. Read more
fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectoredFuture<'a, Self> where
Self: Unpin,
fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectoredFuture<'a, Self> where
Self: Unpin,
Like [write()
][AsyncWriteExt::write()
], except that it writes a slice of buffers. Read more
Writes an entire buffer into the byte stream. Read more
Flushes the stream to ensure that all buffered contents reach their destination. Read more
Mutably borrows from an owned value. Read more