Enum ReloadOrderError
#[non_exhaustive]pub enum ReloadOrderError {
DuplicateListener {
id: Identifier,
},
DuplicateObject {
id: Identifier,
registered_as: Identifier,
},
UnknownListener {
id: Identifier,
},
Cycle {
listeners: Vec<Identifier>,
},
}Expand description
A problem registering or ordering reload listeners.
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.
DuplicateListener
A listener name has already been registered.
Fields
§
id: IdentifierThe listener’s name.
DuplicateObject
The same listener object has already been registered under another name.
Fields
§
id: IdentifierThe listener’s name.
§
registered_as: IdentifierThe name the object was first registered under.
UnknownListener
A dependency named a listener that has not been registered.
Fields
§
id: IdentifierThe listener’s name.
Cycle
The listed listeners belong to a dependency cycle.
Fields
§
listeners: Vec<Identifier>The names of the listeners in the cycle.
Trait Implementations§
§impl Clone for ReloadOrderError
impl Clone for ReloadOrderError
§fn clone(&self) -> ReloadOrderError
fn clone(&self) -> ReloadOrderError
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 more§impl Debug for ReloadOrderError
impl Debug for ReloadOrderError
§impl Display for ReloadOrderError
impl Display for ReloadOrderError
impl Eq for ReloadOrderError
§impl Error for ReloadOrderError
impl Error for ReloadOrderError
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 PartialEq for ReloadOrderError
impl PartialEq for ReloadOrderError
impl StructuralPartialEq for ReloadOrderError
Auto Trait Implementations§
impl Freeze for ReloadOrderError
impl RefUnwindSafe for ReloadOrderError
impl Send for ReloadOrderError
impl Sync for ReloadOrderError
impl Unpin for ReloadOrderError
impl UnsafeUnpin for ReloadOrderError
impl UnwindSafe for ReloadOrderError
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