pub struct CallStatusInfo {
pub call_id: CallId,
pub new_state: CallState,
pub previous_state: Option<CallState>,
pub reason: Option<String>,
pub timestamp: DateTime<Utc>,
}Expand description
Information about a call state change
Provides details about call state transitions, including the previous and new states, timing, and reasons for the change.
§Examples
use rvoip_client_core::events::CallStatusInfo;
use rvoip_client_core::call::{CallId, CallState};
use chrono::Utc;
let status_info = CallStatusInfo {
call_id: uuid::Uuid::new_v4(),
new_state: CallState::Connected,
previous_state: Some(CallState::Ringing),
reason: Some("Call answered".to_string()),
timestamp: Utc::now(),
};
assert_eq!(status_info.new_state, CallState::Connected);Fields§
§call_id: CallIdCall that changed state
new_state: CallStateNew call state after the transition
previous_state: Option<CallState>Previous call state before the transition (if known)
reason: Option<String>Reason for the state change (e.g., “Call answered”, “Network error”)
timestamp: DateTime<Utc>When the state change occurred
Trait Implementations§
Source§impl Clone for CallStatusInfo
impl Clone for CallStatusInfo
Source§fn clone(&self) -> CallStatusInfo
fn clone(&self) -> CallStatusInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CallStatusInfo
impl RefUnwindSafe for CallStatusInfo
impl Send for CallStatusInfo
impl Sync for CallStatusInfo
impl Unpin for CallStatusInfo
impl UnwindSafe for CallStatusInfo
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