Enum embedded_svc::httpd::Method
source · [−]#[repr(u8)]
pub enum Method {
Show 33 variants
Delete,
Get,
Head,
Post,
Put,
Connect,
Options,
Trace,
Copy,
Lock,
MkCol,
Move,
Propfind,
Proppatch,
Search,
Unlock,
Bind,
Rebind,
Unbind,
Acl,
Report,
MkActivity,
Checkout,
Merge,
MSearch,
Notify,
Subscribe,
Unsubscribe,
Patch,
Purge,
MkCalendar,
Link,
Unlink,
}Variants
Delete
Get
Head
Post
Put
Connect
Options
Trace
Copy
Lock
MkCol
Move
Propfind
Proppatch
Search
Unlock
Bind
Rebind
Unbind
Acl
Report
MkActivity
Checkout
Merge
MSearch
Notify
Subscribe
Unsubscribe
Patch
Purge
MkCalendar
Link
Unlink
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Method
impl<'de> Deserialize<'de> for Method
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EnumMessage for Method
impl EnumMessage for Method
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
fn get_serializations(&self) -> &'static [&'static str]
sourceimpl EnumSetTypePrivate for Method
impl EnumSetTypePrivate for Method
sourcefn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
sourceunsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
sourcefn serialize<S: Serializer>(
set: EnumSet<Method>,
ser: S
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>(
set: EnumSet<Method>,
ser: S
) -> Result<S::Ok, S::Error>
Serializes the EnumSet. Read more
sourcefn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Method>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Method>, D::Error>
Deserializes the EnumSet.
sourceimpl IntoEnumIterator for Method
impl IntoEnumIterator for Method
type Iterator = MethodIter
fn iter() -> MethodIterⓘNotable traits for MethodIterimpl Iterator for MethodIter type Item = Method;
sourceimpl PartialOrd<Method> for Method
impl PartialOrd<Method> for Method
sourcefn partial_cmp(&self, other: &Method) -> Option<Ordering>
fn partial_cmp(&self, other: &Method) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl TryFrom<u8> for Method
impl TryFrom<u8> for Method
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for Method
impl TryFromPrimitive for Method
type Primitive = u8
const NAME: &'static str
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Method
impl EnumSetType for Method
impl Eq for Method
Auto Trait Implementations
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more