pub enum FleetResolutionError {
UnknownFleet {
name: String,
available: Vec<String>,
},
UnknownOperator {
operator: String,
available: Vec<String>,
},
AmbiguousOperator {
operator: String,
fleet_names: Vec<String>,
},
}Expand description
Error returned when a named Fleet or operator cannot be resolved (#5039).
Every variant carries a self-contained, human-readable guidance string so
callers can surface actionable help without inspecting error details.
Variants§
UnknownFleet
The requested fleet name is not defined under [fleets.<name>].
Fields
UnknownOperator
The requested operator has no fleets under [fleets.*].
Fields
AmbiguousOperator
The operator owns more than one fleet and no fleet name was given.
Trait Implementations§
Source§impl Clone for FleetResolutionError
impl Clone for FleetResolutionError
Source§fn clone(&self) -> FleetResolutionError
fn clone(&self) -> FleetResolutionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FleetResolutionError
impl Debug for FleetResolutionError
Source§impl Display for FleetResolutionError
impl Display for FleetResolutionError
impl Eq for FleetResolutionError
Source§impl Error for FleetResolutionError
impl Error for FleetResolutionError
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 PartialEq for FleetResolutionError
impl PartialEq for FleetResolutionError
impl StructuralPartialEq for FleetResolutionError
Auto Trait Implementations§
impl Freeze for FleetResolutionError
impl RefUnwindSafe for FleetResolutionError
impl Send for FleetResolutionError
impl Sync for FleetResolutionError
impl Unpin for FleetResolutionError
impl UnsafeUnpin for FleetResolutionError
impl UnwindSafe for FleetResolutionError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.