Struct gmime::MultipartSigned [−]
pub struct MultipartSigned(_, _);
Methods
impl MultipartSigned[src]
impl MultipartSignedpub fn new() -> MultipartSigned[src]
pub fn new() -> MultipartSignedpub 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 MultipartSignedfn clone(&self) -> MultipartSigned
fn clone(&self) -> MultipartSignedReturns 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 MultipartSignedfn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for MultipartSigned
impl Hash for MultipartSignedfn 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 MultipartSignedfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for MultipartSigned
impl<T: IsA<Object>> PartialEq<T> for MultipartSignedfn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for MultipartSigned
impl Eq for MultipartSignedimpl IsA<Multipart> for MultipartSigned
impl IsA<Multipart> for MultipartSignedimpl IsA<Object> for MultipartSigned
impl IsA<Object> for MultipartSignedimpl IsA<Object> for MultipartSigned
impl IsA<Object> for MultipartSignedimpl Default for MultipartSigned[src]
impl Default for MultipartSignedAuto Trait Implementations
impl !Send for MultipartSigned
impl !Send for MultipartSignedimpl !Sync for MultipartSigned
impl !Sync for MultipartSigned