pub enum Method {
Show 15 variants
Invite,
Ack,
Bye,
Cancel,
Register,
Options,
Info,
Prack,
Update,
Subscribe,
Notify,
Refer,
Message,
Publish,
Other(Bytes),
}Expand description
A request method.
Comparison is case-sensitive (RFC 3261 §7.1): Invite is not INVITE. Method tokens
may contain any token character, including the ones that look like punctuation — RFC 4475
§3.1.1.2 sends a method built from exclamation marks, percent signs, backticks and
apostrophes, and it is a perfectly legal method.
Variants§
Invite
INVITE
Ack
ACK
Bye
BYE
Cancel
CANCEL
Register
REGISTER
Options
OPTIONS
Info
INFO
Prack
PRACK
Update
UPDATE
Subscribe
SUBSCRIBE
Notify
NOTIFY
Refer
REFER
Message
MESSAGE
Publish
PUBLISH
Other(Bytes)
Any other method token, retained verbatim.
Implementations§
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