pub struct Message {Show 14 fields
pub mtype: MessageType,
pub request_uri: String,
pub domain: String,
pub to: String,
pub from: String,
pub cseq: String,
pub call_id: String,
pub contact: String,
pub max_forwards: String,
pub via: String,
pub event: String,
pub accept: String,
pub content_type: String,
pub body: String,
}
Fields§
§mtype: MessageType
§request_uri: String
§domain: String
§to: String
§from: String
§cseq: String
§call_id: String
§contact: String
§max_forwards: String
§via: String
§event: String
§accept: String
§content_type: String
§body: String
Implementations§
Source§impl Message
impl Message
pub fn new(mtype: MessageType, domain: String) -> Message
pub fn via(&mut self, proto: String, host: String, port: String) -> &mut Message
pub fn to(&mut self, display_name: Option<String>, ext: String) -> &mut Message
pub fn get_to(&self) -> String
pub fn from( &mut self, display_name: Option<String>, ext: String, ) -> &mut Message
pub fn get_from(&self) -> String
pub fn call_id(&mut self, call_id: String) -> &mut Message
pub fn cseq(&mut self, number: String) -> &mut Message
pub fn event(&mut self, event: String) -> &mut Message
pub fn accept(&mut self, accept: String) -> &mut Message
pub fn content_type(&mut self, content_type: String) -> &mut Message
pub fn contact(&mut self, ext: String) -> &mut Message
pub fn max_forwards(&mut self, number: String) -> &mut Message
pub fn request_uri(&mut self, uri: String) -> &mut Message
pub fn build_message(&mut self) -> String
pub fn parse(msg: &str) -> Message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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