pub struct CallProgress {
pub session_id: String,
pub start_time: Option<DateTime<Utc>>,
pub ring_time: Option<DateTime<Utc>>,
pub answer_time: Option<DateTime<Utc>>,
pub answer: Option<String>,
pub last_status_code: u16,
pub hangup_reason: Option<CallRecordHangupReason>,
pub option: Option<CallOption>,
pub superseded: bool,
}Fields§
§session_id: String§start_time: Option<DateTime<Utc>>§ring_time: Option<DateTime<Utc>>§answer_time: Option<DateTime<Utc>>§answer: Option<String>§last_status_code: u16§hangup_reason: Option<CallRecordHangupReason>§option: Option<CallOption>§superseded: boolSet on a superseded INVITE-mode bridge leg after a successful auto-refer transfer: its termination is an internal replace, so no Hangup event is reported to the client and it must not tear the session down.
Implementations§
Source§impl CallProgress
impl CallProgress
pub fn on_early(&mut self, code: u16)
pub fn on_confirmed(&mut self, session_id: String)
pub fn on_answered(&mut self)
pub fn try_set_answer(&mut self, sdp: &str)
pub fn set_hangup_reason(&mut self, reason: CallRecordHangupReason)
pub fn merge_option(&self, option: CallOption) -> CallOption
pub fn termination(reason: Option<&TerminatedReason>) -> TerminationInfo
Trait Implementations§
Source§impl Clone for CallProgress
impl Clone for CallProgress
Source§impl Debug for CallProgress
impl Debug for CallProgress
Auto Trait Implementations§
impl Freeze for CallProgress
impl RefUnwindSafe for CallProgress
impl Send for CallProgress
impl Sync for CallProgress
impl Unpin for CallProgress
impl UnsafeUnpin for CallProgress
impl UnwindSafe for CallProgress
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more