pub struct VdirMonitor { /* private fields */ }Expand description
Monitor for a VdirStorage instance.
§Quirks
Due to underlying limitations of inotify(7), it’s possible that some events are
missed. When this happens, an Event::General is returned.
Implementations§
Source§impl VdirMonitor
impl VdirMonitor
Sourcepub fn new<I: Item>(
storage: &VdirStorage<I>,
interval: Duration,
) -> Result<VdirMonitor, Error>
pub fn new<I: Item>( storage: &VdirStorage<I>, interval: Duration, ) -> Result<VdirMonitor, Error>
Create a new monitor for storage.
§Errors
If an error occurs setting up the underlying filesystem watcher.
Trait Implementations§
Source§impl StorageMonitor for VdirMonitor
impl StorageMonitor for VdirMonitor
Auto Trait Implementations§
impl Freeze for VdirMonitor
impl !RefUnwindSafe for VdirMonitor
impl Send for VdirMonitor
impl Sync for VdirMonitor
impl Unpin for VdirMonitor
impl !UnwindSafe for VdirMonitor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.