Enum roqoqo::RoqoqoBackendError
source · pub enum RoqoqoBackendError {
OperationNotInBackend {
backend: &'static str,
hqslang: &'static str,
},
MissingAuthentication {
msg: String,
},
NetworkError {
msg: String,
},
Timeout {
msg: String,
},
FileAlreadyExists {
path: String,
},
GenericError {
msg: String,
},
RoqoqoError(RoqoqoError),
CalculatorError(CalculatorError),
}
Expand description
Errors that can occur in roqoqo backends.
Variants§
OperationNotInBackend
Error operation not supported by backend
Fields
MissingAuthentication
Error for backends missing authentication information.
NetworkError
Error when communicating with backend over the network.
Timeout
Error when communicating with backend over the network.
FileAlreadyExists
Error when communicating with backend over the network.
GenericError
Error when communicating with backend over the network.
RoqoqoError(RoqoqoError)
Transparent propagation of RoqoqoError.
CalculatorError(CalculatorError)
Transparent propagation of CalculatorError.
Trait Implementations§
source§impl Debug for RoqoqoBackendError
impl Debug for RoqoqoBackendError
source§impl Display for RoqoqoBackendError
impl Display for RoqoqoBackendError
source§impl Error for RoqoqoBackendError
impl Error for RoqoqoBackendError
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<CalculatorError> for RoqoqoBackendError
impl From<CalculatorError> for RoqoqoBackendError
source§fn from(source: CalculatorError) -> Self
fn from(source: CalculatorError) -> Self
Converts to this type from the input type.
source§impl From<RoqoqoError> for RoqoqoBackendError
impl From<RoqoqoError> for RoqoqoBackendError
source§fn from(source: RoqoqoError) -> Self
fn from(source: RoqoqoError) -> Self
Converts to this type from the input type.
source§impl PartialEq for RoqoqoBackendError
impl PartialEq for RoqoqoBackendError
source§fn eq(&self, other: &RoqoqoBackendError) -> bool
fn eq(&self, other: &RoqoqoBackendError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RoqoqoBackendError
Auto Trait Implementations§
impl Freeze for RoqoqoBackendError
impl RefUnwindSafe for RoqoqoBackendError
impl Send for RoqoqoBackendError
impl Sync for RoqoqoBackendError
impl Unpin for RoqoqoBackendError
impl UnwindSafe for RoqoqoBackendError
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> 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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.