pub enum ReturnCode {
Ok,
Error,
BadParameter,
Unsupported,
OutOfResources,
PreconditionNotMet,
}Expand description
ReturnCode_t (Spec §5.2.1.1-§5.2.1.6, S. 9-10) — Status-Codes
fuer alle RTC-Operationen, die nicht von Natur aus einen anderen
Wert zurueckgeben.
Variants§
Ok
OK (§5.2.1.1) — Operation completed successfully.
Error
ERROR (§5.2.1.2) — Generic, unspecified failure.
BadParameter
BAD_PARAMETER (§5.2.1.3) — Illegal argument.
Unsupported
UNSUPPORTED (§5.2.1.4) — Compliance-Point not implemented.
OutOfResources
OUT_OF_RESOURCES (§5.2.1.5) — Resource exhausted.
PreconditionNotMet
PRECONDITION_NOT_MET (§5.2.1.6) — State-Machine-Violation
(z.B. initialize waehrend nicht in Created-State).
Implementations§
Trait Implementations§
Source§impl Clone for ReturnCode
impl Clone for ReturnCode
Source§fn clone(&self) -> ReturnCode
fn clone(&self) -> ReturnCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReturnCode
impl Debug for ReturnCode
Source§impl Display for ReturnCode
impl Display for ReturnCode
Source§impl Error for ReturnCode
Available on crate feature std only.
impl Error for ReturnCode
Available on crate feature
std only.1.30.0 · 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 Hash for ReturnCode
impl Hash for ReturnCode
Source§impl PartialEq for ReturnCode
impl PartialEq for ReturnCode
Source§fn eq(&self, other: &ReturnCode) -> bool
fn eq(&self, other: &ReturnCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReturnCode
impl Eq for ReturnCode
impl StructuralPartialEq for ReturnCode
Auto Trait Implementations§
impl Freeze for ReturnCode
impl RefUnwindSafe for ReturnCode
impl Send for ReturnCode
impl Sync for ReturnCode
impl Unpin for ReturnCode
impl UnsafeUnpin for ReturnCode
impl UnwindSafe for ReturnCode
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