pub enum NativeWatchError {
Show 17 variants
InvalidOptions,
RootIsNotDirectory,
SymbolicLinkDirectory,
ObservedPathNotDirectory,
UnrepresentablePath,
RootChanged,
Io(String),
Backend(String),
StatePoisoned,
RescanAlreadyInProgress,
NoRescanInProgress,
RescanInProgress,
ZeroPollLimit,
SequenceExhausted,
AllocationFailed,
Cancelled(CancellationError),
Work(WorkError),
}Expand description
Native watcher failures that are not recoverable through a baseline rescan.
Variants§
InvalidOptions
Queue or volume bounds are invalid.
RootIsNotDirectory
Watch root is not a directory.
SymbolicLinkDirectory
A demanded directory traverses a symbolic link and cannot be mapped back to one exact namespace path.
ObservedPathNotDirectory
A demanded observer path is not a directory.
UnrepresentablePath
A demanded namespace path cannot be represented exactly on this host.
RootChanged
A separately opened capture root does not match the watched directory.
Io(String)
Root path I/O failed.
Backend(String)
Native backend setup failed.
StatePoisoned
Watcher state synchronization was poisoned.
RescanAlreadyInProgress
A baseline scan is already active.
NoRescanInProgress
No baseline scan is active.
RescanInProgress
Polling while a baseline is being built is ambiguous.
ZeroPollLimit
Poll output must have a positive bound.
SequenceExhausted
Process-local cursor arithmetic overflowed.
AllocationFailed
Bounded output allocation failed.
Cancelled(CancellationError)
Polling was cooperatively cancelled.
Work(WorkError)
Exact work overflowed or exceeded the admitted budget.
Trait Implementations§
Source§impl Debug for NativeWatchError
impl Debug for NativeWatchError
Source§impl Display for NativeWatchError
impl Display for NativeWatchError
Source§impl Error for NativeWatchError
impl Error for NativeWatchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<CancellationError> for NativeWatchError
impl From<CancellationError> for NativeWatchError
Source§fn from(source: CancellationError) -> Self
fn from(source: CancellationError) -> Self
Source§impl From<NativeWatchError> for DemandError
impl From<NativeWatchError> for DemandError
Source§fn from(source: NativeWatchError) -> Self
fn from(source: NativeWatchError) -> Self
Auto Trait Implementations§
impl Freeze for NativeWatchError
impl RefUnwindSafe for NativeWatchError
impl Send for NativeWatchError
impl Sync for NativeWatchError
impl Unpin for NativeWatchError
impl UnsafeUnpin for NativeWatchError
impl UnwindSafe for NativeWatchError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request