pub struct Context { /* private fields */ }Expand description
What the repository can tell the filter, resolved once per process.
Loading this once is the point of the long-running protocol: the configuration and the key are read on startup, not per file.
Implementations§
Source§impl Context
impl Context
Sourcepub fn load(repo: &Repo) -> Result<Self>
pub fn load(repo: &Repo) -> Result<Self>
Gathers everything the filter needs from repo.
A missing key is not fatal here: a locked repository still has to check out its ciphertext and pass unselected files through.
§Errors
Error::Config when .git-xcrypt cannot be understood — that must
stop the operation rather than silently encrypt nothing.
Auto Trait Implementations§
impl !Freeze for Context
impl !RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl !UnwindSafe for Context
impl Unpin for Context
impl UnsafeUnpin 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