pub enum ResponseCode {
Success(SuccessCode),
ClientError(ClientErrorCode),
ServerError(ServerErrorCode),
}Expand description
Response Codes according to https://www.rfc-editor.org/rfc/rfc7252#section-5.9
Variants§
Trait Implementations§
Source§impl Clone for ResponseCode
impl Clone for ResponseCode
Source§fn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
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 ResponseCode
impl Debug for ResponseCode
Source§impl From<ClientErrorCode> for ResponseCode
impl From<ClientErrorCode> for ResponseCode
Source§fn from(code: ClientErrorCode) -> ResponseCode
fn from(code: ClientErrorCode) -> ResponseCode
Converts to this type from the input type.
Source§impl From<ResponseCode> for Code
impl From<ResponseCode> for Code
Source§fn from(code: ResponseCode) -> Code
fn from(code: ResponseCode) -> Code
Converts to this type from the input type.
Source§impl From<ServerErrorCode> for ResponseCode
impl From<ServerErrorCode> for ResponseCode
Source§fn from(code: ServerErrorCode) -> ResponseCode
fn from(code: ServerErrorCode) -> ResponseCode
Converts to this type from the input type.
Source§impl From<SuccessCode> for ResponseCode
impl From<SuccessCode> for ResponseCode
Source§fn from(code: SuccessCode) -> ResponseCode
fn from(code: SuccessCode) -> ResponseCode
Converts to this type from the input type.
Source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
Source§impl TryFrom<Code> for ResponseCode
impl TryFrom<Code> for ResponseCode
impl Copy for ResponseCode
impl Eq for ResponseCode
impl StructuralPartialEq for ResponseCode
Auto Trait Implementations§
impl Freeze for ResponseCode
impl RefUnwindSafe for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Unpin for ResponseCode
impl UnwindSafe for ResponseCode
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