pub enum DemandError {
Show 13 variants
StaleSource,
StaleVersion,
StaleCursor,
CursorBusy,
SourceUnavailable,
Absent,
NotRegularFile,
NotDirectory,
InvalidRequest,
Cancelled,
WorkerUnavailable,
Io(Error),
Observation(NativeWatchError),
}Expand description
Typed failures from a source dependency.
Variants§
StaleSource
The reference is for another source or an invalidated epoch.
StaleVersion
The node changed while a request was being answered.
StaleCursor
A directory cursor is expired or belongs to another query.
CursorBusy
Another request is currently advancing this cursor.
Source root disappeared or was replaced.
Absent
Exact requested path is absent.
NotRegularFile
Request requires a regular file.
NotDirectory
Request requires a directory.
InvalidRequest
Bounds or path are invalid.
Cancelled
Request was cancelled.
The bounded native worker could not complete the request.
Io(Error)
Native or remote source failed.
Observation(NativeWatchError)
Demand-driven native observation could not be admitted exactly.
Trait Implementations§
Source§impl Debug for DemandError
impl Debug for DemandError
Source§impl Display for DemandError
impl Display for DemandError
Source§impl Error for DemandError
impl Error for DemandError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DemandError> for LazyWorkspaceError
impl From<DemandError> for LazyWorkspaceError
Source§fn from(source: DemandError) -> Self
fn from(source: DemandError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DemandError
impl From<Error> for DemandError
Source§impl From<NamespacePathError> for DemandError
impl From<NamespacePathError> for DemandError
Source§fn from(_: NamespacePathError) -> Self
fn from(_: NamespacePathError) -> Self
Converts to this type from the input type.
Source§impl From<NativeWatchError> for DemandError
impl From<NativeWatchError> for DemandError
Source§fn from(source: NativeWatchError) -> Self
fn from(source: NativeWatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DemandError
impl !UnwindSafe for DemandError
impl Freeze for DemandError
impl Send for DemandError
impl Sync for DemandError
impl Unpin for DemandError
impl UnsafeUnpin for DemandError
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
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>
Wrap the input message
T in a tonic::Request