#[non_exhaustive]pub enum FleetError {
Topology(TopologyError),
Request(RequestError),
TargetNotFound(HostId),
StaleTopology {
host: HostId,
expected: TopologyRevision,
actual: TopologyRevision,
},
Cancelled,
DeadlineExceeded,
Connection {
host: HostId,
message: String,
},
Command {
host: HostId,
message: String,
},
RemoteCommandDetached {
host: HostId,
reason: &'static str,
},
Transfer {
source_host: HostId,
destination_host: HostId,
message: String,
},
TransferLifecycle(String),
EventSink(String),
}Expand description
Product-neutral fleet discovery, connection, command, and transfer failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Topology(TopologyError)
Topology contract validation failed.
Request(RequestError)
Request contract validation failed.
TargetNotFound(HostId)
A requested host did not exist in the current snapshot.
StaleTopology
The caller bound work to an obsolete host revision.
Fields
§
expected: TopologyRevisionRevision bound by the request or cached connection.
§
actual: TopologyRevisionCurrent topology revision.
Cancelled
Cancellation was observed before completion.
DeadlineExceeded
The absolute or per-target deadline elapsed.
Connection
A connection driver failed.
Command
A command driver failed before returning a process result.
RemoteCommandDetached
A post-spawn remote command was detached and may still be running.
Transfer
A file transfer driver failed.
Fields
TransferLifecycle(String)
Transfer lifecycle accounting was invalid.
EventSink(String)
Event emission failed after the underlying action.
Trait Implementations§
Source§impl Clone for FleetError
impl Clone for FleetError
Source§fn clone(&self) -> FleetError
fn clone(&self) -> FleetError
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 FleetError
impl Debug for FleetError
Source§impl Display for FleetError
impl Display for FleetError
Source§impl Error for FleetError
impl Error for FleetError
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<RequestError> for FleetError
impl From<RequestError> for FleetError
Source§fn from(source: RequestError) -> Self
fn from(source: RequestError) -> Self
Converts to this type from the input type.
Source§impl From<TopologyError> for FleetError
impl From<TopologyError> for FleetError
Source§fn from(source: TopologyError) -> Self
fn from(source: TopologyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FleetError
impl PartialEq for FleetError
Source§fn eq(&self, other: &FleetError) -> bool
fn eq(&self, other: &FleetError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FleetError
impl StructuralPartialEq for FleetError
Auto Trait Implementations§
impl Freeze for FleetError
impl RefUnwindSafe for FleetError
impl Send for FleetError
impl Sync for FleetError
impl Unpin for FleetError
impl UnsafeUnpin for FleetError
impl UnwindSafe for FleetError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.