Struct dokany::MainResult
source · pub struct MainResult(pub DokanMainResult);
Expand description
The error/result for mounting a filesystem.
Tuple Fields§
§0: DokanMainResult
Implementations§
source§impl MainResult
impl MainResult
sourcepub const DRIVE_LETTER_ERROR: Self = _
pub const DRIVE_LETTER_ERROR: Self = _
Dokan mount failed - Bad drive letter.
sourcepub const DRIVER_INSTALL_ERROR: Self = _
pub const DRIVER_INSTALL_ERROR: Self = _
Dokan mount failed - Can’t install driver.
sourcepub const START_ERROR: Self = _
pub const START_ERROR: Self = _
Dokan mount failed - Driver answer that something is wrong.
sourcepub const MOUNT_ERROR: Self = _
pub const MOUNT_ERROR: Self = _
Dokan mount failed.
Can’t assign a drive letter or mount point. Probably already used by another volume.
sourcepub const MOUNT_POINT_ERROR: Self = _
pub const MOUNT_POINT_ERROR: Self = _
Dokan mount failed.
Mount point is invalid.
sourcepub const VERSION_ERROR: Self = _
pub const VERSION_ERROR: Self = _
Dokan mount failed.
Requested an incompatible version.
sourcepub fn is_success(self) -> bool
pub fn is_success(self) -> bool
Returns true if this is [SUCCESS
].
Trait Implementations§
source§impl Clone for MainResult
impl Clone for MainResult
source§fn clone(&self) -> MainResult
fn clone(&self) -> MainResult
Returns a copy 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 MainResult
impl Debug for MainResult
source§impl Default for MainResult
impl Default for MainResult
source§impl Display for MainResult
impl Display for MainResult
source§impl Error for MainResult
impl Error for MainResult
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<MainResult> for Result<(), MainResult>
impl From<MainResult> for Result<(), MainResult>
source§fn from(result: MainResult) -> Self
fn from(result: MainResult) -> Self
Converts to this type from the input type.
source§impl Hash for MainResult
impl Hash for MainResult
source§impl PartialEq<MainResult> for MainResult
impl PartialEq<MainResult> for MainResult
source§fn eq(&self, other: &MainResult) -> bool
fn eq(&self, other: &MainResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MainResult
impl Eq for MainResult
impl StructuralEq for MainResult
impl StructuralPartialEq for MainResult
Auto Trait Implementations§
impl RefUnwindSafe for MainResult
impl Send for MainResult
impl Sync for MainResult
impl Unpin for MainResult
impl UnwindSafe for MainResult
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