pub enum RegistrationError {
EmptyName,
InvertedVersionRange,
IncompatibleVersion {
current: SnapshotVersion,
min: SnapshotVersion,
max: SnapshotVersion,
},
UnsupportedFields(Vec<String>),
NoTargetSeams,
ZeroBudget,
DuplicateName(String),
}Expand description
Reason a controller registration was rejected.
Variants§
EmptyName
Controller name is empty.
InvertedVersionRange
Version range is inverted (min > max).
IncompatibleVersion
Current snapshot version is outside controller’s supported range.
Fields
§
current: SnapshotVersionSnapshot version found in the runtime state being validated.
§
min: SnapshotVersionMinimum snapshot version accepted by the controller.
§
max: SnapshotVersionMaximum snapshot version accepted by the controller.
UnsupportedFields(Vec<String>)
Required fields are not present in the current snapshot schema.
NoTargetSeams
No target seams specified.
ZeroBudget
Budget has zero decisions allowed.
DuplicateName(String)
A controller with this name is already registered.
Trait Implementations§
Source§impl Clone for RegistrationError
impl Clone for RegistrationError
Source§fn clone(&self) -> RegistrationError
fn clone(&self) -> RegistrationError
Returns a duplicate of the value. Read more
1.0.0 · 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 RegistrationError
impl Debug for RegistrationError
Source§impl<'de> Deserialize<'de> for RegistrationError
impl<'de> Deserialize<'de> for RegistrationError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RegistrationError
impl Display for RegistrationError
Source§impl Error for RegistrationError
impl Error for RegistrationError
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 RegistrationError
impl PartialEq for RegistrationError
Source§impl Serialize for RegistrationError
impl Serialize for RegistrationError
impl Eq for RegistrationError
impl StructuralPartialEq for RegistrationError
Auto Trait Implementations§
impl Freeze for RegistrationError
impl RefUnwindSafe for RegistrationError
impl Send for RegistrationError
impl Sync for RegistrationError
impl Unpin for RegistrationError
impl UnsafeUnpin for RegistrationError
impl UnwindSafe for RegistrationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).