pub enum SpecError {
UnknownTransport {
name: String,
expected: &'static str,
},
Empty,
EmptyTarget,
MissingTarget {
kind: &'static str,
},
}Expand description
Why a transport spec could not be read.
Variants§
UnknownTransport
The part before the : is not a transport this build knows.
Fields
Empty
Nothing at all.
EmptyTarget
The part after the : was empty.
Distinct from SpecError::Empty because stdio: is a caller who
clearly meant to name a target and did not, which is a different
mistake from naming no transport.
MissingTarget
A transport that needs a target was named without one.
Trait Implementations§
impl Eq for SpecError
Source§impl Error for SpecError
impl Error for SpecError
1.30.0 · 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<SpecError> for ConnectError
impl From<SpecError> for ConnectError
impl StructuralPartialEq for SpecError
Auto Trait Implementations§
impl Freeze for SpecError
impl RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl UnsafeUnpin for SpecError
impl UnwindSafe for SpecError
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