pub struct ActiveCallState {Show 19 fields
pub session_id: String,
pub start_time: DateTime<Utc>,
pub ring_time: Option<DateTime<Utc>>,
pub answer_time: Option<DateTime<Utc>>,
pub hangup_reason: Option<CallRecordHangupReason>,
pub last_status_code: u16,
pub option: Option<CallOption>,
pub answer: Option<String>,
pub ssrc: u32,
pub refer_callstate: Option<ActiveCallStateRef>,
pub extras: Option<HashMap<String, Value>>,
pub is_refer: bool,
pub tts_handle: Option<SynthesisHandle>,
pub auto_hangup: Option<(u32, CallRecordHangupReason)>,
pub wait_input_timeout: Option<u32>,
pub moh: Option<String>,
pub current_play_id: Option<String>,
pub audio_receiver: Option<WebsocketBytesReceiver>,
pub ready_to_answer: Option<(String, Option<Box<dyn Track>>, ServerInviteDialog)>,
}Fields§
§session_id: String§start_time: DateTime<Utc>§ring_time: Option<DateTime<Utc>>§answer_time: Option<DateTime<Utc>>§hangup_reason: Option<CallRecordHangupReason>§last_status_code: u16§option: Option<CallOption>§answer: Option<String>§ssrc: u32§refer_callstate: Option<ActiveCallStateRef>§extras: Option<HashMap<String, Value>>§is_refer: bool§tts_handle: Option<SynthesisHandle>§auto_hangup: Option<(u32, CallRecordHangupReason)>§wait_input_timeout: Option<u32>§moh: Option<String>§current_play_id: Option<String>§audio_receiver: Option<WebsocketBytesReceiver>§ready_to_answer: Option<(String, Option<Box<dyn Track>>, ServerInviteDialog)>Implementations§
Source§impl ActiveCallState
impl ActiveCallState
pub fn merge_option(&self, option: CallOption) -> CallOption
pub fn set_hangup_reason(&mut self, reason: CallRecordHangupReason)
pub fn build_hangup_event( &self, track_id: TrackId, initiator: Option<String>, ) -> SessionEvent
pub fn build_callrecord( &self, app_state: AppState, session_id: String, call_type: ActiveCallType, ) -> CallRecord
Trait Implementations§
Source§impl Default for ActiveCallState
impl Default for ActiveCallState
Source§fn default() -> ActiveCallState
fn default() -> ActiveCallState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActiveCallState
impl !RefUnwindSafe for ActiveCallState
impl Send for ActiveCallState
impl Sync for ActiveCallState
impl Unpin for ActiveCallState
impl !UnwindSafe for ActiveCallState
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
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