pub struct LocalBackend {
pub path: PathBuf,
/* private fields */
}Fields§
§path: PathBufImplementations§
Source§impl LocalBackend
impl LocalBackend
pub fn new(path: impl AsRef<Path>, group: Option<String>) -> Result<Self>
pub fn log_audit_entry(&self, entry: &AuditEntry) -> Result<()>
pub fn init(&self, _: Compression) -> Result<bool>
pub fn store(&self, req: StoreRequest<'_>) -> Result<StoreResult>
pub fn retrieve(&self, req: RetrieveRequest<'_>) -> Result<bool>
pub fn exists(&self, hash: &Hashes) -> Result<bool>
pub fn remove(&self, hash: &Hashes) -> Result<()>
Sourcepub fn get_audit_entries(&self, files: &[PathBuf]) -> Result<Vec<AuditEntry>>
pub fn get_audit_entries(&self, files: &[PathBuf]) -> Result<Vec<AuditEntry>>
An empty files slice returns the full audit log. See
parse_audit_log for the filtering rules.
Trait Implementations§
Source§impl Clone for LocalBackend
impl Clone for LocalBackend
Source§impl Debug for LocalBackend
impl Debug for LocalBackend
Source§impl<'de> Deserialize<'de> for LocalBackend
impl<'de> Deserialize<'de> for LocalBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LocalBackend
impl PartialEq for LocalBackend
Source§impl Serialize for LocalBackend
impl Serialize for LocalBackend
impl StructuralPartialEq for LocalBackend
Auto Trait Implementations§
impl Freeze for LocalBackend
impl RefUnwindSafe for LocalBackend
impl Send for LocalBackend
impl Sync for LocalBackend
impl Unpin for LocalBackend
impl UnsafeUnpin for LocalBackend
impl UnwindSafe for LocalBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more