pub struct AppStateInner {Show 18 fields
pub config: Arc<Config>,
pub token: CancellationToken,
pub stream_engine: Arc<StreamEngine>,
pub callrecord_sender: Option<CallRecordSender>,
pub endpoint: Endpoint,
pub registration_handles: Mutex<HashMap<String, RegistrationHandle>>,
pub alive_users: Arc<RwLock<HashSet<String>>>,
pub dialog_layer: Arc<DialogLayer>,
pub create_invitation_handler: Option<FnCreateInvitationHandler>,
pub invitation: Invitation,
pub routing_state: Arc<RoutingState>,
pub pending_playbooks: Arc<Mutex<HashMap<String, String>>>,
pub pending_params: Arc<Mutex<HashMap<String, HashMap<String, Value>>>>,
pub active_calls: Arc<Mutex<HashMap<String, ActiveCallRef>>>,
pub total_calls: AtomicU64,
pub total_failed_calls: AtomicU64,
pub uptime: DateTime<Local>,
pub shutting_down: Arc<AtomicBool>,
}Fields§
§config: Arc<Config>§token: CancellationToken§stream_engine: Arc<StreamEngine>§callrecord_sender: Option<CallRecordSender>§endpoint: Endpoint§registration_handles: Mutex<HashMap<String, RegistrationHandle>>§alive_users: Arc<RwLock<HashSet<String>>>§dialog_layer: Arc<DialogLayer>§create_invitation_handler: Option<FnCreateInvitationHandler>§invitation: Invitation§routing_state: Arc<RoutingState>§pending_playbooks: Arc<Mutex<HashMap<String, String>>>§pending_params: Arc<Mutex<HashMap<String, HashMap<String, Value>>>>§active_calls: Arc<Mutex<HashMap<String, ActiveCallRef>>>§total_calls: AtomicU64§total_failed_calls: AtomicU64§uptime: DateTime<Local>§shutting_down: Arc<AtomicBool>Implementations§
Source§impl AppStateInner
impl AppStateInner
pub fn get_dump_events_file(&self, session_id: &String) -> String
pub fn get_recorder_file(&self, session_id: &String) -> String
pub async fn serve(self: Arc<Self>) -> Result<()>
pub fn stop(&self)
pub async fn start_registration(&self) -> Result<usize>
pub fn find_credentials_for_callee( &self, callee: &str, ) -> Option<UserCredential>
pub async fn stop_registration( &self, wait_for_clear: Option<Duration>, ) -> Result<()>
pub async fn register(&self, option: RegisterOption) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AppStateInner
impl !RefUnwindSafe for AppStateInner
impl Send for AppStateInner
impl Sync for AppStateInner
impl Unpin for AppStateInner
impl UnsafeUnpin for AppStateInner
impl !UnwindSafe for AppStateInner
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