pub enum PostSystemError {
SystemNameTooLong,
MissingExtendedDataLabel(u8),
MissingExtendedDataUnit(u8),
ExtendedDataLabelTooLong(u8),
ExtendedDataUnitTooLong(u8),
InvalidExtendedDataField(u8, ExtendedDataField),
}Expand description
Errors that can occur when updating a system using crate::Client::post_system.
Variants§
SystemNameTooLong
System name is too long.
System names can be at most thirty characters long.
MissingExtendedDataLabel(u8)
Missing label for extended data.
MissingExtendedDataUnit(u8)
Missing unit for extended data.
ExtendedDataLabelTooLong(u8)
Extended data label too long.
Extended data labels can be at most twenty characters long.
ExtendedDataUnitTooLong(u8)
Extended data unit too long.
Extended data units can be at most ten characters long.
InvalidExtendedDataField(u8, ExtendedDataField)
Invalid extended data field.
Trait Implementations§
Source§impl Clone for PostSystemError
impl Clone for PostSystemError
Source§fn clone(&self) -> PostSystemError
fn clone(&self) -> PostSystemError
Returns a duplicate of the value. Read more
1.0.0 · 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 PostSystemError
impl Debug for PostSystemError
Source§impl Display for PostSystemError
impl Display for PostSystemError
Source§impl Error for PostSystemError
impl Error for PostSystemError
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 From<PostSystemError> for ClientError<PostSystemError>
impl From<PostSystemError> for ClientError<PostSystemError>
Source§fn from(error: PostSystemError) -> Self
fn from(error: PostSystemError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PostSystemError
impl PartialEq for PostSystemError
impl Copy for PostSystemError
impl Eq for PostSystemError
impl StructuralPartialEq for PostSystemError
Auto Trait Implementations§
impl Freeze for PostSystemError
impl RefUnwindSafe for PostSystemError
impl Send for PostSystemError
impl Sync for PostSystemError
impl Unpin for PostSystemError
impl UnwindSafe for PostSystemError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.