pub struct FanotifyMonitor { /* private fields */ }Implementations§
Source§impl FanotifyMonitor
impl FanotifyMonitor
pub fn new(config: FanotifyConfig) -> Self
pub fn status(&self) -> FanotifyStatus
pub fn roots(&self) -> &[PathBuf]
pub fn try_init(&mut self) -> FanotifyStatus
pub fn poll(&self) -> Vec<RawEvent>
pub fn event_from_observation( timestamp_ms: i64, pid: u32, uid: u32, file_path: impl AsRef<Path>, access_type: FsAccessType, bytes_transferred: Option<u64>, ) -> RawEvent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FanotifyMonitor
impl RefUnwindSafe for FanotifyMonitor
impl Send for FanotifyMonitor
impl Sync for FanotifyMonitor
impl Unpin for FanotifyMonitor
impl UnsafeUnpin for FanotifyMonitor
impl UnwindSafe for FanotifyMonitor
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