pub struct SipDialog { /* private fields */ }
Implementations§
Source§impl SipDialog
impl SipDialog
pub fn try_new_as_uac<T>( req_headers: &Vec<Header>, resp_message: &SipMessage, on_last_user_removed: T, ) -> Result<SipDialog, &'static str>
pub fn try_new_as_uas<T>( req_message: &SipMessage, resp_message: &SipMessage, on_last_user_removed: T, ) -> Result<SipDialog, &'static str>
pub fn dialog_identifier(&self) -> SipDialogIdentifier<'_>
pub fn confirm(&self)
pub fn register_user<T>(&self, callbacks: T) -> Arc<T>
pub fn unregister_user( &self, callbacks: &Arc<dyn SipDialogEventCallbacks + Send + Sync>, ) -> Option<Box<dyn FnOnce(Arc<SipDialog>) + Send + Sync>>
pub fn register_transaction( &self, transaction: (Arc<ServerTransaction>, Sender<ServerTransactionEvent>, Receiver<ServerTransactionEvent>), )
pub fn remote_seq(&self) -> &Arc<Mutex<Option<u32>>>
pub fn on_ack(&self, transaction: &Arc<ServerTransaction>)
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>>
pub fn on_terminating_request(&self, message: &SipMessage, rt: &Arc<Runtime>)
pub fn on_terminating_response(&self, message: &SipMessage, rt: &Arc<Runtime>)
pub fn make_request( &self, method: &[u8], seq: Option<u32>, ) -> Result<SipMessage, &'static str>
pub fn cmcc_patch_route_set_on_subscriber_2xx_response( &self, resp_message: &SipMessage, )
Auto Trait Implementations§
impl Freeze for SipDialog
impl RefUnwindSafe for SipDialog
impl Send for SipDialog
impl Sync for SipDialog
impl Unpin for SipDialog
impl UnwindSafe for SipDialog
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