Enum roqoqo::RoqoqoBackendError
source · [−]pub enum RoqoqoBackendError {
OperationNotInBackend {
backend: &'static str,
hqslang: &'static str,
},
MissingAuthentification {
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
MissingAuthentification
Fields
msg: String
Error msg
Error for backends missing authentification information.
NetworkError
Fields
msg: String
Error msg
Error when communicating with backend over the network.
Timeout
Fields
msg: String
Error msg
Error when communicating with backend over the network.
FileAlreadyExists
Fields
path: String
Path of file to be created
Error when communicating with backend over the network.
GenericError
Fields
msg: String
Generic error message
Error when communicating with backend over the network.
RoqoqoError(RoqoqoError)
Transparent propagation of RoqoqoError.
CalculatorError(CalculatorError)
Transparent propagation of CalculatorError.
Trait Implementations
sourceimpl Debug for RoqoqoBackendError
impl Debug for RoqoqoBackendError
sourceimpl Display for RoqoqoBackendError
impl Display for RoqoqoBackendError
sourceimpl Error for RoqoqoBackendError
impl Error for RoqoqoBackendError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<CalculatorError> for RoqoqoBackendError
impl From<CalculatorError> for RoqoqoBackendError
sourcefn from(source: CalculatorError) -> Self
fn from(source: CalculatorError) -> Self
Performs the conversion.
sourceimpl From<RoqoqoError> for RoqoqoBackendError
impl From<RoqoqoError> for RoqoqoBackendError
sourcefn from(source: RoqoqoError) -> Self
fn from(source: RoqoqoError) -> Self
Performs the conversion.
sourceimpl PartialEq<RoqoqoBackendError> for RoqoqoBackendError
impl PartialEq<RoqoqoBackendError> for RoqoqoBackendError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &RoqoqoBackendError) -> bool
fn ne(&self, other: &RoqoqoBackendError) -> bool
This method tests for !=
.
impl StructuralPartialEq for RoqoqoBackendError
Auto Trait Implementations
impl RefUnwindSafe for RoqoqoBackendError
impl Send for RoqoqoBackendError
impl Sync for RoqoqoBackendError
impl Unpin for RoqoqoBackendError
impl UnwindSafe for RoqoqoBackendError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.