pub enum BurnCentralError {
InvalidExperimentPath(String),
InvalidProjectPath(String),
InvalidExperimentNumber(String),
InvalidModelPath(String),
Client {
context: String,
source: ClientError,
},
ExperimentTracker(ExperimentTrackerError),
Unauthenticated,
Io(Error),
Internal(String),
}Variants§
InvalidExperimentPath(String)
InvalidProjectPath(String)
InvalidExperimentNumber(String)
InvalidModelPath(String)
Client
Represents an error related to client operations.
This error variant is used to encapsulate client-specific errors along with additional context and the underlying source error for more detailed debugging.
§Fields
context(String): A description or additional information about the client error context.source(ClientError): The underlying source of the client error, providing more details about the cause.
ExperimentTracker(ExperimentTrackerError)
Represents an error related to the experiment tracker.
Unauthenticated
Error that should be used when the user is not logged in but tries to perform an operation that requires authentication.
Io(Error)
Error that should be used when the client performs operations that can fail due to IO issues.
Internal(String)
Error that should be used when the client encounters an error that is not specifically handled.
Trait Implementations§
Source§impl Debug for BurnCentralError
impl Debug for BurnCentralError
Source§impl Display for BurnCentralError
impl Display for BurnCentralError
Source§impl Error for BurnCentralError
impl Error for BurnCentralError
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<Error> for BurnCentralError
impl From<Error> for BurnCentralError
Source§impl From<ExperimentTrackerError> for BurnCentralError
impl From<ExperimentTrackerError> for BurnCentralError
Source§fn from(source: ExperimentTrackerError) -> Self
fn from(source: ExperimentTrackerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BurnCentralError
impl !RefUnwindSafe for BurnCentralError
impl Send for BurnCentralError
impl Sync for BurnCentralError
impl Unpin for BurnCentralError
impl !UnwindSafe for BurnCentralError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.