pub enum DeploymentError {
NodeCapacityFull {
capacity: usize,
},
MissingNode(NodeId),
MissingStation(StationId),
NodeUnavailable {
node_id: NodeId,
state: DeploymentNodeState,
},
NodeStationCapacity {
node_id: NodeId,
capacity: usize,
attempted: usize,
},
}Expand description
Deployment route error.
Variants§
NodeCapacityFull
Node table is full.
MissingNode(NodeId)
Node does not exist.
MissingStation(StationId)
Station route does not exist.
Node cannot accept new placements in its current state.
NodeStationCapacity
Node station capacity would be exceeded.
Trait Implementations§
Source§impl Clone for DeploymentError
impl Clone for DeploymentError
Source§fn clone(&self) -> DeploymentError
fn clone(&self) -> DeploymentError
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 moreimpl Copy for DeploymentError
Source§impl Debug for DeploymentError
impl Debug for DeploymentError
Source§impl Display for DeploymentError
impl Display for DeploymentError
impl Eq for DeploymentError
Source§impl Error for DeploymentError
impl Error for DeploymentError
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 DeploymentError
impl PartialEq for DeploymentError
impl StructuralPartialEq for DeploymentError
Auto Trait Implementations§
impl Freeze for DeploymentError
impl RefUnwindSafe for DeploymentError
impl Send for DeploymentError
impl Sync for DeploymentError
impl Unpin for DeploymentError
impl UnsafeUnpin for DeploymentError
impl UnwindSafe for DeploymentError
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