pub struct CallSession { /* private fields */ }Expand description
A cloneable session-control handle over a Call’s dialog.
Produced by Call::session_handle and consumed by
crate::session_timer_loop: it implements SessionDialogOps so the
loop can send refresh re-INVITEs and the tear-down BYE on the shared dialog.
Trait Implementations§
Source§impl Clone for CallSession
impl Clone for CallSession
Source§fn clone(&self) -> CallSession
fn clone(&self) -> CallSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl SessionDialogOps for CallSession
impl SessionDialogOps for CallSession
Source§async fn refresh(
&self,
headers: Vec<Header>,
body: Option<Vec<u8>>,
) -> Result<Option<Response>, Box<dyn Error + Send + Sync>>
async fn refresh( &self, headers: Vec<Header>, body: Option<Vec<u8>>, ) -> Result<Option<Response>, Box<dyn Error + Send + Sync>>
Send a session-refresh re-INVITE with the given extra headers
and (typically SDP) body. Returns the final response, or
Ok(None) if the dialog is no longer confirmed.Auto Trait Implementations§
impl !RefUnwindSafe for CallSession
impl !UnwindSafe for CallSession
impl Freeze for CallSession
impl Send for CallSession
impl Sync for CallSession
impl Unpin for CallSession
impl UnsafeUnpin for CallSession
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