pub enum Refused {
Duplicate {
point: &'static str,
listener: String,
},
Cycle {
point: &'static str,
path: Vec<String>,
},
TypeMismatch {
point: &'static str,
},
AlreadyDeclared {
point: &'static str,
},
Threaded {
point: &'static str,
listener: String,
},
}Expand description
Why a declaration or a listener was refused. Nothing was changed.
Variants§
Duplicate
The point already has a listener with this id.
Cycle
The listener’s after/before would close a cycle: these
listeners, each to run before the next, the first again at the
end.
TypeMismatch
The point id is already registered with another Point type.
AlreadyDeclared
The point was already declared.
Threaded
A local listener asked for a thread of its own
(ListenOpts::threaded); it runs on the thread that registered
it.
Trait Implementations§
impl Eq for Refused
Source§impl Error for Refused
impl Error for Refused
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 Refused
Auto Trait Implementations§
impl Forget for Refused
impl Freeze for Refused
impl Move for Refused
impl RefUnwindSafe for Refused
impl Send for Refused
impl Sync for Refused
impl Unpin for Refused
impl UnsafeUnpin for Refused
impl UnwindSafe for Refused
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