pub struct AddressErrorCode {
pub family: RequestedAddressFamily,
pub code: ErrorCode,
pub reason: Vec<u8>,
}Expand description
AddressErrorCode represents the ADDRESS-ERROR-CODE attribute as defined in
RFC 8656 Section 18.12.
A server puts it in the success response to an Allocate that asked for two address families when it could allocate only one: it names the family it did not allocate and why, with 440 (Address Family not Supported) or 508 (Insufficient Capacity).
Fields§
§family: RequestedAddressFamilyThe address family that was not allocated.
code: ErrorCodeWhy: the error code, as in ERROR-CODE.
reason: Vec<u8>The reason phrase, UTF-8.
Trait Implementations§
Source§impl Clone for AddressErrorCode
impl Clone for AddressErrorCode
Source§impl Debug for AddressErrorCode
impl Debug for AddressErrorCode
Source§impl Default for AddressErrorCode
impl Default for AddressErrorCode
Source§impl Display for AddressErrorCode
impl Display for AddressErrorCode
impl Eq for AddressErrorCode
Source§impl Getter for AddressErrorCode
impl Getter for AddressErrorCode
Source§impl PartialEq for AddressErrorCode
impl PartialEq for AddressErrorCode
Source§impl Setter for AddressErrorCode
impl Setter for AddressErrorCode
impl StructuralPartialEq for AddressErrorCode
Auto Trait Implementations§
impl Forget for AddressErrorCode
impl Freeze for AddressErrorCode
impl Move for AddressErrorCode
impl RefUnwindSafe for AddressErrorCode
impl Send for AddressErrorCodewhere
RawVecInner: Send,
impl Sync for AddressErrorCodewhere
RawVecInner: Sync,
impl Unpin for AddressErrorCode
impl UnsafeUnpin for AddressErrorCode
impl UnwindSafe for AddressErrorCodewhere
RawVecInner: UnwindSafe,
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