#[non_exhaustive]pub enum PolicyIdentityError {
EmptyName,
NameTooLong {
length: usize,
maximum: usize,
},
NonAsciiName,
ControlCharacterName,
ZeroVersion,
}Expand description
PolicyIdentityError
Failure to construct a bounded runtime bootstrap policy identity.
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.
EmptyName
Policy-family names must not be empty.
NameTooLong
Policy-family names must remain bounded diagnostic metadata.
NonAsciiName
Policy-family names must not require Unicode normalization.
ControlCharacterName
Policy-family names must be printable diagnostic metadata.
ZeroVersion
Semantic policy version zero is reserved as invalid.
Trait Implementations§
Source§impl Clone for PolicyIdentityError
impl Clone for PolicyIdentityError
Source§fn clone(&self) -> PolicyIdentityError
fn clone(&self) -> PolicyIdentityError
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 moreimpl Copy for PolicyIdentityError
Source§impl Debug for PolicyIdentityError
impl Debug for PolicyIdentityError
Source§impl Display for PolicyIdentityError
impl Display for PolicyIdentityError
impl Eq for PolicyIdentityError
Source§impl Error for PolicyIdentityError
impl Error for PolicyIdentityError
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<P> From<PolicyIdentityError> for RuntimeBootstrapError<P>
impl<P> From<PolicyIdentityError> for RuntimeBootstrapError<P>
Source§fn from(source: PolicyIdentityError) -> Self
fn from(source: PolicyIdentityError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PolicyIdentityError
impl PartialEq for PolicyIdentityError
impl StructuralPartialEq for PolicyIdentityError
Auto Trait Implementations§
impl Freeze for PolicyIdentityError
impl RefUnwindSafe for PolicyIdentityError
impl Send for PolicyIdentityError
impl Sync for PolicyIdentityError
impl Unpin for PolicyIdentityError
impl UnsafeUnpin for PolicyIdentityError
impl UnwindSafe for PolicyIdentityError
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