pub struct Occupied(pub PathBuf);Expand description
The error inside the io::ErrorKind::AlreadyExists that add_with returns for a wt that
exists and is not empty. Test for it with is_occupied
Tuple Fields§
§0: PathBufTrait Implementations§
Source§impl Error for Occupied
impl Error for Occupied
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()
Auto Trait Implementations§
impl Forget for Occupied
impl Freeze for Occupied
impl Move for Occupied
impl RefUnwindSafe for Occupied
impl Send for Occupied
impl Sync for Occupied
impl Unpin for Occupied
impl UnsafeUnpin for Occupied
impl UnwindSafe for Occupied
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