#[non_exhaustive]pub enum TerminalIndexError {
DuplicateBus {
bus: String,
},
DuplicateTerminal {
bus: String,
terminal: String,
},
}Expand description
Why a network’s terminals cannot be indexed.
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.
DuplicateBus
Two buses share one identity, compared ASCII case insensitively.
DuplicateTerminal
A bus states one terminal twice.
Trait Implementations§
Source§impl Clone for TerminalIndexError
impl Clone for TerminalIndexError
Source§impl Debug for TerminalIndexError
impl Debug for TerminalIndexError
Source§impl Display for TerminalIndexError
impl Display for TerminalIndexError
impl Eq for TerminalIndexError
Source§impl Error for TerminalIndexError
impl Error for TerminalIndexError
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 TerminalIndexError
impl PartialEq for TerminalIndexError
impl StructuralPartialEq for TerminalIndexError
Auto Trait Implementations§
impl Freeze for TerminalIndexError
impl RefUnwindSafe for TerminalIndexError
impl Send for TerminalIndexError
impl Sync for TerminalIndexError
impl Unpin for TerminalIndexError
impl UnsafeUnpin for TerminalIndexError
impl UnwindSafe for TerminalIndexError
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