pub enum FarmingError {
FailedToSubscribeSlotInfo {
error: Error,
},
FailedToGetFarmerInfo {
error: Error,
},
SlotNotificationStreamEnded,
LowLevelAuditing(AuditingError),
LowLevelProving(ProvingError),
Io(Error),
Decoded(DecodedFarmingError),
}Expand description
Errors that happen during farming
Variants§
FailedToSubscribeSlotInfo
Failed to subscribe to slot info notifications
FailedToGetFarmerInfo
Failed to retrieve farmer info
SlotNotificationStreamEnded
Slot info notification stream ended
LowLevelAuditing(AuditingError)
Low-level auditing error
LowLevelProving(ProvingError)
Low-level proving error
Io(Error)
I/O error occurred
Decoded(DecodedFarmingError)
Decoded farming error
Implementations§
Source§impl FarmingError
impl FarmingError
Trait Implementations§
Source§impl Debug for FarmingError
impl Debug for FarmingError
Source§impl Decode for FarmingError
impl Decode for FarmingError
Source§fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Source§impl Display for FarmingError
impl Display for FarmingError
Source§impl Encode for FarmingError
impl Encode for FarmingError
Source§impl Error for FarmingError
impl Error for FarmingError
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 From<AuditingError> for FarmingError
impl From<AuditingError> for FarmingError
Source§fn from(source: AuditingError) -> Self
fn from(source: AuditingError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for FarmingError
impl From<Error> for FarmingError
Source§impl From<FarmingError> for BackgroundTaskError
impl From<FarmingError> for BackgroundTaskError
Source§fn from(source: FarmingError) -> Self
fn from(source: FarmingError) -> Self
Converts to this type from the input type.
Source§impl From<ProvingError> for FarmingError
impl From<ProvingError> for FarmingError
Source§fn from(source: ProvingError) -> Self
fn from(source: ProvingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FarmingError
impl !RefUnwindSafe for FarmingError
impl Send for FarmingError
impl Sync for FarmingError
impl Unpin for FarmingError
impl !UnwindSafe for FarmingError
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> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§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