pub struct RequestError {
pub error_code: VarInt,
pub retry_interval: VarInt,
pub reason_phrase: Vec<u8>,
pub error_details: Vec<KeyValuePair>,
}Expand description
REQUEST_ERROR (0x05), Section 9.4.1, Figure 10.
error_details are Key-Value-Pairs (Section 8.3) filling the rest of the
message: “Receivers MUST ignore unknown Error Detail types, and MUST ignore
a known Error Detail type that accompanies an Error Code it is not defined
for” (Section 9.4.2). They are carried in wire order, unknown ones included.
Fields§
§error_code: VarInt§retry_interval: VarInt§reason_phrase: Vec<u8>§error_details: Vec<KeyValuePair>Implementations§
Source§impl RequestError
impl RequestError
Sourcepub fn redirect(&self) -> Option<Result<Redirect, CodecError>>
pub fn redirect(&self) -> Option<Result<Redirect, CodecError>>
The first REDIRECT Error Detail, decoded, if the error carries one.
Sourcepub fn unsupported_properties(&self) -> Vec<u64>
pub fn unsupported_properties(&self) -> Vec<u64>
The Property Types named by UNSUPPORTED_PROPERTY Error Details, in wire order. Section 9.4.2.2: “Multiple instances of this type are allowed.”
Trait Implementations§
Source§impl Clone for RequestError
impl Clone for RequestError
Source§impl Debug for RequestError
impl Debug for RequestError
impl Eq for RequestError
Source§impl PartialEq for RequestError
impl PartialEq for RequestError
impl StructuralPartialEq for RequestError
Auto Trait Implementations§
impl Freeze for RequestError
impl RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnsafeUnpin for RequestError
impl UnwindSafe for RequestError
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