pub struct Method(/* private fields */);Expand description
An owned, case-sensitive HTTP token with inline storage for short extensions.
Implementations§
Source§impl Method
impl Method
pub const GET: Self
pub const POST: Self
pub const PUT: Self
pub const PATCH: Self
pub const DELETE: Self
pub const HEAD: Self
pub const OPTIONS: Self
pub const CONNECT: Self
pub const TRACE: Self
pub const QUERY: Self
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
pub fn as_str(&self) -> &str
pub fn as_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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