pub struct Method(/* private fields */);Expand description
Represents a SIP-Method.
To construct a known method use the constants:
§Example
use ezk_sip_types::Method;
// well known methods should be implemented as constants
let _invite_method = Method::INVITE;
// custom methods can be also used:
let _custom_method = Method::from("HELLO");Implementations§
Source§impl Method
impl Method
pub const INVITE: Self
pub const ACK: Self
pub const CANCEL: Self
pub const BYE: Self
pub const REGISTER: Self
pub const MESSAGE: Self
pub const UPDATE: Self
pub const PRACK: Self
pub const OPTIONS: Self
pub const SUBSCRIBE: Self
pub const NOTIFY: Self
pub const PUBLISH: Self
pub const INFO: Self
pub const REFER: Self
pub fn from_parse(src: &Bytes, slice: &str) -> Self
Trait Implementations§
Source§impl Ord for Method
impl Ord for Method
Source§impl PartialOrd for Method
impl PartialOrd for Method
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 UnwindSafe for Method
Blanket Implementations§
Source§impl<T> AppendCtx for Twhere
T: Print,
impl<T> AppendCtx for Twhere
T: Print,
Source§fn print_ctx<'a>(&'a self, ctx: PrintCtx<'a>) -> WithPrintCtx<'a, Self>
fn print_ctx<'a>(&'a self, ctx: PrintCtx<'a>) -> WithPrintCtx<'a, Self>
Wrap a type inside a
WithPrintCtx so it implements displaySource§fn default_print_ctx(&self) -> WithPrintCtx<'_, Self>
fn default_print_ctx(&self) -> WithPrintCtx<'_, Self>
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