pub enum FileNameError {
Length,
Character,
Reserved,
}Expand description
A name that could escape its directory or alias a Windows device.
Variants§
Length
The name is empty or exceeds a filesystem component’s length.
Character
The name contains a forbidden byte, starts with a dot or ends with one.
Reserved
The name names a Windows device, even with an extension.
Trait Implementations§
Source§impl Clone for FileNameError
impl Clone for FileNameError
Source§fn clone(&self) -> FileNameError
fn clone(&self) -> FileNameError
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 FileNameError
impl Debug for FileNameError
Source§impl Display for FileNameError
impl Display for FileNameError
Source§impl Error for FileNameError
impl Error for FileNameError
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 FileNameError
impl PartialEq for FileNameError
impl Copy for FileNameError
impl Eq for FileNameError
impl StructuralPartialEq for FileNameError
Auto Trait Implementations§
impl Freeze for FileNameError
impl RefUnwindSafe for FileNameError
impl Send for FileNameError
impl Sync for FileNameError
impl Unpin for FileNameError
impl UnsafeUnpin for FileNameError
impl UnwindSafe for FileNameError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more