pub enum ResponseCode {
Show 38 variants
Continue = 144,
Ok = 160,
Created = 161,
Accepted = 162,
NonAuthoritativeInformation = 163,
NoContent = 164,
ResetContent = 165,
PartialContent = 166,
MultipleChoices = 176,
MovedPermanently = 177,
MovedTemporarily = 178,
SeeOther = 179,
NotModified = 180,
UseProxy = 181,
BadRequest = 192,
Unauthorized = 193,
PaymentRequired = 194,
Forbidden = 195,
NotFound = 196,
MethodNotAllowed = 197,
NotAcceptable = 198,
ProxyAuthenticationRequired = 199,
RequestTimeOut = 200,
Conflict = 201,
Gone = 202,
LengthRequired = 203,
PreconditionFailed = 204,
RequestedEntityTooLarge = 205,
RequestedUrlTooLarge = 206,
UnsupportedMediaType = 207,
InternalServerError = 208,
NotImplemented = 209,
BadGateway = 210,
ServiceUnavailable = 211,
GatewayTimeout = 212,
HttpVersionNotSupported = 213,
DatabaseFull = 224,
DatabaseLocked = 225,
}
Expand description
Response codes that an OBEX server may send to the Client after receiving a request. The most significant bit of the response code is the Final Bit. This is always set in OBEX response codes - see OBEX 1.5 Section 3.2. Defined in OBEX 1.5 Section 3.2.1.
Variants§
Continue = 144
Ok = 160
Created = 161
Accepted = 162
NonAuthoritativeInformation = 163
NoContent = 164
ResetContent = 165
PartialContent = 166
MultipleChoices = 176
MovedPermanently = 177
MovedTemporarily = 178
SeeOther = 179
NotModified = 180
UseProxy = 181
BadRequest = 192
PaymentRequired = 194
Forbidden = 195
NotFound = 196
MethodNotAllowed = 197
NotAcceptable = 198
ProxyAuthenticationRequired = 199
RequestTimeOut = 200
Conflict = 201
Gone = 202
LengthRequired = 203
PreconditionFailed = 204
RequestedEntityTooLarge = 205
RequestedUrlTooLarge = 206
UnsupportedMediaType = 207
InternalServerError = 208
NotImplemented = 209
BadGateway = 210
GatewayTimeout = 212
HttpVersionNotSupported = 213
DatabaseFull = 224
DatabaseLocked = 225
Implementations§
Trait Implementations§
Source§impl Clone for ResponseCode
impl Clone for ResponseCode
Source§fn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
Returns a copy 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<&ResponseCode> for u8
impl From<&ResponseCode> for u8
Source§fn from(v: &ResponseCode) -> u8
fn from(v: &ResponseCode) -> u8
Converts to this type from the input type.
Source§impl Hash for ResponseCode
impl Hash for ResponseCode
Source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
Source§impl TryFrom<u8> for ResponseCode
impl TryFrom<u8> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)