Struct gmime::MultipartSigned [−]
pub struct MultipartSigned(_, _);
Methods
impl MultipartSigned
[src]
impl MultipartSigned
pub fn new() -> MultipartSigned
[src]
pub fn new() -> MultipartSigned
pub fn sign<P: IsA<CryptoContext>, Q: IsA<Object>>(
ctx: &P,
entity: &Q,
userid: &str
) -> Result<Option<MultipartSigned>, Error>
[src]
pub fn sign<P: IsA<CryptoContext>, Q: IsA<Object>>(
ctx: &P,
entity: &Q,
userid: &str
) -> Result<Option<MultipartSigned>, Error>
Attempts to sign the content
MIME part with userid
's private key
using the ctx
signing context. If successful, a new multipart/signed
object is returned.
ctx
a CryptoContext
entity
MIME part to sign
userid
user id to sign with
Returns
a new MultipartSigned
object on success
or None
on fail. If signing fails, an exception will be set on err
to provide
information as to why the failure occurred.
Trait Implementations
impl Clone for MultipartSigned
impl Clone for MultipartSigned
fn clone(&self) -> MultipartSigned
fn clone(&self) -> MultipartSigned
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for MultipartSigned
impl Debug for MultipartSigned
fn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for MultipartSigned
impl Hash for MultipartSigned
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for MultipartSigned
impl StaticType for MultipartSigned
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for MultipartSigned
impl<T: IsA<Object>> PartialEq<T> for MultipartSigned
fn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for MultipartSigned
impl Eq for MultipartSigned
impl IsA<Multipart> for MultipartSigned
impl IsA<Multipart> for MultipartSigned
impl IsA<Object> for MultipartSigned
impl IsA<Object> for MultipartSigned
impl IsA<Object> for MultipartSigned
impl IsA<Object> for MultipartSigned
impl Default for MultipartSigned
[src]
impl Default for MultipartSigned
Auto Trait Implementations
impl !Send for MultipartSigned
impl !Send for MultipartSigned
impl !Sync for MultipartSigned
impl !Sync for MultipartSigned