pub enum FactSourceRegistrationError {
SharedEmptySession {
fact_name: &'static str,
},
AlreadyRegistered {
fact_name: &'static str,
},
InFlight {
fact_name: &'static str,
},
}Expand description
Error returned by non-panicking fact-source registration helpers.
Variants§
The session is the process-wide empty session and cannot accept sources.
AlreadyRegistered
A source is already registered for this exact fact key type.
Fields
§
fact_name: &'static strDiagnostic fact name from FactKey::NAME.
InFlight
Loads for this fact key type are currently in flight.
Fields
§
fact_name: &'static strDiagnostic fact name from FactKey::NAME.
Trait Implementations§
Source§impl Clone for FactSourceRegistrationError
impl Clone for FactSourceRegistrationError
Source§fn clone(&self) -> FactSourceRegistrationError
fn clone(&self) -> FactSourceRegistrationError
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 moreSource§impl Debug for FactSourceRegistrationError
impl Debug for FactSourceRegistrationError
impl Eq for FactSourceRegistrationError
Source§impl Error for FactSourceRegistrationError
impl Error for FactSourceRegistrationError
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 FactSourceRegistrationError
impl PartialEq for FactSourceRegistrationError
Source§fn eq(&self, other: &FactSourceRegistrationError) -> bool
fn eq(&self, other: &FactSourceRegistrationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FactSourceRegistrationError
Auto Trait Implementations§
impl Freeze for FactSourceRegistrationError
impl RefUnwindSafe for FactSourceRegistrationError
impl Send for FactSourceRegistrationError
impl Sync for FactSourceRegistrationError
impl Unpin for FactSourceRegistrationError
impl UnsafeUnpin for FactSourceRegistrationError
impl UnwindSafe for FactSourceRegistrationError
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