pub struct Moved { /* private fields */ }Expand description
See moved.
Implementations§
Source§impl Moved
impl Moved
Sourcepub fn source_error(self, message: impl Into<String>) -> Self
pub fn source_error(self, message: impl Into<String>) -> Self
Shown when the source still exists, instead of messages::MOVE_SOURCE_EXISTS.
Sourcepub fn destination_error(self, message: impl Into<String>) -> Self
pub fn destination_error(self, message: impl Into<String>) -> Self
Shown when the destination is missing, instead of messages::MOVE_DEST_MISSING.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Moved
impl RefUnwindSafe for Moved
impl Send for Moved
impl Sync for Moved
impl Unpin for Moved
impl UnsafeUnpin for Moved
impl UnwindSafe for Moved
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