pub struct SipDialog { /* private fields */ }

Implementations§

source§

impl SipDialog

source

pub fn try_new_as_uac<T>( req_headers: &Vec<Header>, resp_message: &SipMessage, on_last_user_removed: T ) -> Result<SipDialog, &'static str>where T: Fn(Arc<SipDialog>) + Send + Sync + 'static,

source

pub fn try_new_as_uas<T>( req_message: &SipMessage, resp_message: &SipMessage, on_last_user_removed: T ) -> Result<SipDialog, &'static str>where T: Fn(Arc<SipDialog>) + Send + Sync + 'static,

source

pub fn dialog_identifier(&self) -> SipDialogIdentifier<'_>

source

pub fn confirm(&self)

source

pub fn register_user<T>(&self, callbacks: T) -> Arc<T>where T: SipDialogEventCallbacks + Send + Sync + 'static,

source

pub fn unregister_user( &self, callbacks: &Arc<dyn SipDialogEventCallbacks + Send + Sync> ) -> Option<Box<dyn FnOnce(Arc<SipDialog>) + Send + Sync>>

source

pub fn register_transaction( &self, transaction: (Arc<ServerTransaction>, Sender<ServerTransactionEvent>, Receiver<ServerTransactionEvent>) )

source

pub fn remote_seq(&self) -> &Arc<Mutex<Option<u32>>>

source

pub fn on_ack(&self, transaction: &Arc<ServerTransaction>)

source

pub fn on_request( &self, transaction: &Arc<ServerTransaction>, tx: Sender<ServerTransactionEvent>, rt: &Arc<Runtime>, seq_guard: &mut MutexGuard<'_, Option<u32>>, message_seq: u32 ) -> Option<Box<dyn FnOnce(Arc<SipDialog>) + Send + Sync>>

source

pub fn on_terminating_request(&self, message: &SipMessage, rt: &Arc<Runtime>)

source

pub fn on_terminating_response(&self, message: &SipMessage, rt: &Arc<Runtime>)

source

pub fn make_request( &self, method: &[u8], seq: Option<u32> ) -> Result<SipMessage, &'static str>

source

pub fn cmcc_patch_route_set_on_subscriber_2xx_response( &self, resp_message: &SipMessage )

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V