Struct gmime::ApplicationPkcs7Mime [−]
Methods
impl ApplicationPkcs7Mime
[src]
[−]
impl ApplicationPkcs7Mime
pub fn new(type_: SecureMimeType) -> ApplicationPkcs7Mime
[src]
[−]
pub fn new(type_: SecureMimeType) -> ApplicationPkcs7Mime
Creates a new application/pkcs7-mime object.
type_
The type of S/MIME data contained within the part.
Returns
an empty application/pkcs7-mime object.
pub fn sign<P: IsA<Object>>(
entity: &P,
userid: &str
) -> Result<Option<ApplicationPkcs7Mime>, Error>
[src]
[−]
pub fn sign<P: IsA<Object>>(
entity: &P,
userid: &str
) -> Result<Option<ApplicationPkcs7Mime>, Error>
Attempts to sign the entity
MIME part with userid
's private key using
S/MIME. If successful, a new application/pkcs7-mime object is returned.
entity
a Object
userid
the user id to sign with
Returns
a new ApplicationPkcs7Mime
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 ApplicationPkcs7Mime
[+]
impl Clone for ApplicationPkcs7Mime
impl Debug for ApplicationPkcs7Mime
[+]
impl Debug for ApplicationPkcs7Mime
impl Hash for ApplicationPkcs7Mime
[+]
impl Hash for ApplicationPkcs7Mime
impl StaticType for ApplicationPkcs7Mime
[+]
impl StaticType for ApplicationPkcs7Mime
impl<T: IsA<Object>> PartialEq<T> for ApplicationPkcs7Mime
[+]
impl<T: IsA<Object>> PartialEq<T> for ApplicationPkcs7Mime
impl Eq for ApplicationPkcs7Mime
impl Eq for ApplicationPkcs7Mime
impl IsA<Part> for ApplicationPkcs7Mime
impl IsA<Part> for ApplicationPkcs7Mime
impl IsA<Object> for ApplicationPkcs7Mime
impl IsA<Object> for ApplicationPkcs7Mime
impl IsA<Object> for ApplicationPkcs7Mime
impl IsA<Object> for ApplicationPkcs7Mime
Auto Trait Implementations
impl !Send for ApplicationPkcs7Mime
impl !Send for ApplicationPkcs7Mime
impl !Sync for ApplicationPkcs7Mime
impl !Sync for ApplicationPkcs7Mime