[][src]Struct melib::gpgme::Context

pub struct Context {
    inner: Arc<ContextInner>,
    io_state: Arc<Mutex<IoState>>,
}

Fields

inner: Arc<ContextInner>io_state: Arc<Mutex<IoState>>

Implementations

impl Context[src]

pub fn new() -> Result<Self>[src]

fn set_flag_inner(
    &self,
    raw_flag: *const c_char,
    raw_value: *const c_char
) -> Result<()>
[src]

pub fn set_flag(&self, flag: GpgmeFlag, value: bool) -> Result<()>[src]

fn get_flag_inner(&self, raw_flag: *const c_char) -> *const c_char[src]

pub fn get_flag(&self, flag: GpgmeFlag) -> Result<bool>[src]

pub fn set_auto_key_locate(&self, val: LocateKey) -> Result<()>[src]

pub fn get_auto_key_locate(&self) -> Result<LocateKey>[src]

pub fn new_data_mem(&self, bytes: &[u8]) -> Result<Data>[src]

pub fn new_data_file<P: AsRef<Path>>(&self, r: P) -> Result<Data>[src]

pub fn verify(
    &mut self,
    signature: Data,
    text: Data
) -> Result<impl Future<Output = Result<()>> + Send>
[src]

pub fn keylist(
    &mut self,
    secret: bool,
    pattern: Option<String>
) -> Result<impl Future<Output = Result<Vec<Key>>>>
[src]

pub fn sign(
    &mut self,
    sign_keys: Vec<Key>,
    text: Data
) -> Result<impl Future<Output = Result<Vec<u8>>>>
[src]

pub fn decrypt(
    &mut self,
    cipher: Data
) -> Result<impl Future<Output = Result<(DecryptionMetadata, Vec<u8>)>> + Send>
[src]

pub fn encrypt(
    &mut self,
    sign_keys: Option<Vec<Key>>,
    encrypt_keys: Vec<Key>,
    plain: Data
) -> Result<impl Future<Output = Result<Vec<u8>>> + Send>
[src]

Trait Implementations

impl Send for Context[src]

impl Sync for Context[src]

Auto Trait Implementations

impl RefUnwindSafe for Context

impl Unpin for Context

impl UnwindSafe for Context

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]