Struct sep2_common::packages::objects::Error
source · pub struct Error {
pub max_retry_duration: Option<Uint16>,
pub reason_code: ErrorReason,
}
Expand description
Contains information about the nature of an error if a request could not be completed successfully.
Fields§
§max_retry_duration: Option<Uint16>
Contains the number of seconds the client SHOULD wait before retrying the request.
reason_code: ErrorReason
Code indicating the reason for failure. 0 - Invalid request format 1 - Invalid request values (e.g. invalid threshold values) 2 - Resource limit reached 3 - Conditional subscription field not supported 4 - Maximum request frequency exceeded All other values reserved
Trait Implementations§
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
source§impl YaSerialize for Error
impl YaSerialize for Error
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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