pub enum SiteError {
DuplicateId {
kind: &'static str,
id: String,
},
UnknownCircuit {
asset: String,
circuit: String,
},
UnknownParent {
circuit: String,
parent: String,
},
CircuitCycle {
circuit: String,
},
}Expand description
A site description that cannot be acted on.
Variants§
DuplicateId
Two assets, or two circuits, share an identifier.
Fields
UnknownCircuit
An asset names a circuit the site does not have.
UnknownParent
A circuit names a parent the site does not have.
CircuitCycle
The circuit parent references form a cycle.
Trait Implementations§
impl Eq for SiteError
Source§impl Error for SiteError
impl Error for SiteError
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()
impl StructuralPartialEq for SiteError
Auto Trait Implementations§
impl Freeze for SiteError
impl RefUnwindSafe for SiteError
impl Send for SiteError
impl Sync for SiteError
impl Unpin for SiteError
impl UnsafeUnpin for SiteError
impl UnwindSafe for SiteError
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