#[repr(u32)]pub enum TofResponseCode {
Show 14 variants
Unknown = 0,
RespErrUnexecutable = 500,
RespErrAccessDenied = 403,
RespErrNotImplemented = 404,
RespErrLevelNoProblem = 4_000,
RespErrLevelMedium = 4_010,
RespErrLevelSevere = 4_020,
RespErrLevelCritical = 4_030,
RespErrLevelMissionCritical = 4_040,
RespErrLevelRunFoolRun = 99_999,
RespSuccFingersCrossed = 200,
RespErrNoRunActive = 501,
RespErrRunActive = 502,
RespErrCmdStuck = 503,
}
Variants§
Unknown = 0
RespErrUnexecutable = 500
response code for: Command can not be executed on the server side
RespErrAccessDenied = 403
RespErrNotImplemented = 404
RespErrLevelNoProblem = 4_000
response code for: Something did not work quite right, however, the problem has either fixed itself or it is highly likely that if the command is issued again it will succeed.
RespErrLevelMedium = 4_010
RespErrLevelSevere = 4_020
RespErrLevelCritical = 4_030
response code for: A critical condition. This might need a fix somehow and can not be fixed automatically. Probably at least a power-cycle is necessary.
RespErrLevelMissionCritical = 4_040
response code for: The severest error condition which can occur. This might still be fixable, but it is probably a good advice to get help. Currently, the mission might be in a bad state.
RespErrLevelRunFoolRun = 99_999
response code for: If you see this, it is probably reasonable to follow that advice.. Something unexplicable, which should never have happened, did happen and there is probably no way to fix it. Call somebody if you see it, but probably the mission has failed.
RespSuccFingersCrossed = 200
response code for: The server has executed the command succesfully. THIS DOES NOT GUARANTEE THAT SERVER IS ACTUALLY DOING SOMETHING USEFUL, IT JUST ACKNOWLEDGES EXECUTION.
RespErrNoRunActive = 501
The command can’t be executed since currently data taking is not active
RespErrRunActive = 502
The command can’t be executed since currently data taking is active
RespErrCmdStuck = 503
The command got stuck somewhere and did not make it to the intended receiver
Trait Implementations§
Source§impl Clone for TofResponseCode
impl Clone for TofResponseCode
Source§fn clone(&self) -> TofResponseCode
fn clone(&self) -> TofResponseCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TofResponseCode
impl Debug for TofResponseCode
Source§impl<'de> Deserialize<'de> for TofResponseCode
impl<'de> Deserialize<'de> for TofResponseCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for TofResponseCode
impl Display for TofResponseCode
Source§impl From<u32> for TofResponseCode
impl From<u32> for TofResponseCode
Source§impl FromRandom for TofResponseCode
impl FromRandom for TofResponseCode
fn from_random() -> Self
Source§impl PartialEq for TofResponseCode
impl PartialEq for TofResponseCode
Source§impl Serialize for TofResponseCode
impl Serialize for TofResponseCode
impl Copy for TofResponseCode
impl StructuralPartialEq for TofResponseCode
Auto Trait Implementations§
impl Freeze for TofResponseCode
impl RefUnwindSafe for TofResponseCode
impl Send for TofResponseCode
impl Sync for TofResponseCode
impl Unpin for TofResponseCode
impl UnwindSafe for TofResponseCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self
to an expression for Diesel’s query builder. Read more