pub struct TrustStore { /* private fields */ }Expand description
A handle on the local trust directory.
Construct with TrustStore::new (real home) or
TrustStore::for_home (tests). All operations are file-backed; the
type holds no in-memory cache so concurrent edits by external tools
are picked up on the next read.
Implementations§
Source§impl TrustStore
impl TrustStore
Sourcepub fn list(&self) -> Result<Vec<TrustStoreEntry>>
pub fn list(&self) -> Result<Vec<TrustStoreEntry>>
List trusted publishers, sorted by name.
Sourcepub fn add(&self, root: TrustStoreEntry) -> Result<()>
pub fn add(&self, root: TrustStoreEntry) -> Result<()>
Add (or replace) a trusted publisher.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrustStore
impl RefUnwindSafe for TrustStore
impl Send for TrustStore
impl Sync for TrustStore
impl Unpin for TrustStore
impl UnsafeUnpin for TrustStore
impl UnwindSafe for TrustStore
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