Struct sequoia_ipc::gnupg::Context
source · pub struct Context { /* private fields */ }
Expand description
A GnuPG context.
Implementations§
source§impl Context
impl Context
sourcepub fn with_homedir<P>(homedir: P) -> Result<Self>
pub fn with_homedir<P>(homedir: P) -> Result<Self>
Creates a new context for the given GnuPG home directory.
sourcepub fn ephemeral() -> Result<Self>
pub fn ephemeral() -> Result<Self>
Creates a new ephemeral context.
The created home directory will be deleted once this object is dropped.
sourcepub fn homedir(&self) -> Option<&Path>
pub fn homedir(&self) -> Option<&Path>
Returns the path to homedir
directory.
The path returned will be in a local format, i. e. one accepted by
available gpgconf
or gpg
tools.
sourcepub fn create_socket_dir(&self) -> Result<()>
pub fn create_socket_dir(&self) -> Result<()>
Creates directories for RPC communication.
sourcepub fn remove_socket_dir(&self) -> Result<()>
pub fn remove_socket_dir(&self) -> Result<()>
Removes directories for RPC communication.
Note: This will stop all servers once they note that their socket is gone.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more