pub enum SkillServerIdError {
Empty,
TooLong {
len: usize,
limit: usize,
},
InvalidCharacters,
}Expand description
Errors returned by validate_server_id.
Variants§
Empty
server_id was empty.
An empty server_id would collapse a per-server confinement
directory back to its shared parent, so it is rejected explicitly
rather than falling through the (vacuously true) character-class
check below.
TooLong
server_id exceeded the maximum allowed length.
Fields
InvalidCharacters
server_id contained a character other than a lowercase letter,
digit, or hyphen.
Trait Implementations§
Source§impl Clone for SkillServerIdError
impl Clone for SkillServerIdError
Source§fn clone(&self) -> SkillServerIdError
fn clone(&self) -> SkillServerIdError
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 SkillServerIdError
impl Debug for SkillServerIdError
Source§impl Display for SkillServerIdError
impl Display for SkillServerIdError
impl Eq for SkillServerIdError
Source§impl Error for SkillServerIdError
impl Error for SkillServerIdError
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 SkillServerIdError
impl PartialEq for SkillServerIdError
impl StructuralPartialEq for SkillServerIdError
Auto Trait Implementations§
impl Freeze for SkillServerIdError
impl RefUnwindSafe for SkillServerIdError
impl Send for SkillServerIdError
impl Sync for SkillServerIdError
impl Unpin for SkillServerIdError
impl UnsafeUnpin for SkillServerIdError
impl UnwindSafe for SkillServerIdError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.