#[non_exhaustive]pub enum SetError {
NoTargets,
NoSuchScene {
index: usize,
count: usize,
},
}Expand description
Why a set operation was refused.
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.
NoTargets
A layer was added with no targets.
Refused rather than accepted as a no-op: a caller that built an empty target list has a bug upstream of here, and silently creating a layer that appears nowhere hides it until someone asks why the screen is blank.
NoSuchScene
A target named a scene the set does not have.
Trait Implementations§
impl Eq for SetError
Source§impl Error for SetError
impl Error for SetError
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 SetError
Auto Trait Implementations§
impl Freeze for SetError
impl RefUnwindSafe for SetError
impl Send for SetError
impl Sync for SetError
impl Unpin for SetError
impl UnsafeUnpin for SetError
impl UnwindSafe for SetError
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