pub enum SingleDiskFarmScrubError {
Show 15 variants
LikelyAlreadyInUse(Error),
FailedToDetermineFileSize {
file: PathBuf,
error: Error,
},
FailedToReadBytes {
file: PathBuf,
size: u64,
offset: u64,
error: Error,
},
FailedToWriteBytes {
file: PathBuf,
size: u64,
offset: u64,
error: Error,
},
FarmInfoFileDoesNotExist {
file: PathBuf,
},
FarmInfoCantBeOpened {
file: PathBuf,
error: Error,
},
IdentityFileDoesNotExist {
file: PathBuf,
},
IdentityCantBeOpened {
file: PathBuf,
error: IdentityError,
},
PublicKeyMismatch {
identity: Ed25519PublicKey,
info: Ed25519PublicKey,
},
MetadataFileDoesNotExist {
file: PathBuf,
},
MetadataCantBeOpened {
file: PathBuf,
error: Error,
},
MetadataFileTooSmall {
file: PathBuf,
reserved_size: u64,
size: u64,
},
FailedToDecodeMetadataHeader(Error),
UnexpectedMetadataVersion(u8),
CacheCantBeOpened {
file: PathBuf,
error: Error,
},
}Expand description
Errors happening during scrubbing
Variants§
LikelyAlreadyInUse(Error)
Farm is likely already in use, make sure no other farmer is using it
FailedToDetermineFileSize
Failed to determine file size
FailedToReadBytes
Failed to read bytes from file
Fields
FailedToWriteBytes
Failed to write bytes from file
Fields
FarmInfoFileDoesNotExist
Farm info file does not exist
FarmInfoCantBeOpened
Farm info can’t be opened
IdentityFileDoesNotExist
Identity file does not exist
IdentityCantBeOpened
Identity can’t be opened
PublicKeyMismatch
Identity public key doesn’t match public key in the disk farm info
Fields
§
identity: Ed25519PublicKeyIdentity public key
§
info: Ed25519PublicKeyDisk farm info public key
MetadataFileDoesNotExist
Metadata file does not exist
MetadataCantBeOpened
Metadata can’t be opened
MetadataFileTooSmall
Metadata file too small
FailedToDecodeMetadataHeader(Error)
Failed to decode metadata header
UnexpectedMetadataVersion(u8)
Unexpected metadata version
CacheCantBeOpened
Cache can’t be opened
Trait Implementations§
Source§impl Debug for SingleDiskFarmScrubError
impl Debug for SingleDiskFarmScrubError
Source§impl Display for SingleDiskFarmScrubError
impl Display for SingleDiskFarmScrubError
Source§impl Error for SingleDiskFarmScrubError
impl Error for SingleDiskFarmScrubError
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 Freeze for SingleDiskFarmScrubError
impl !RefUnwindSafe for SingleDiskFarmScrubError
impl Send for SingleDiskFarmScrubError
impl Sync for SingleDiskFarmScrubError
impl Unpin for SingleDiskFarmScrubError
impl !UnwindSafe for SingleDiskFarmScrubError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more