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>,
}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>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§fn clone(&self) -> CallProgress
fn clone(&self) -> CallProgress
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 Debug for CallProgress
impl Debug for CallProgress
Source§impl Default for CallProgress
impl Default for CallProgress
Source§fn default() -> CallProgress
fn default() -> CallProgress
Returns the “default value” for a type. Read more
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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