pub enum SessionEvent {
Show 25 variants
Incoming {
track_id: String,
timestamp: u64,
caller: String,
callee: String,
sdp: String,
},
Answer {
track_id: String,
timestamp: u64,
sdp: String,
refer: Option<bool>,
},
Reject {
track_id: String,
timestamp: u64,
reason: String,
refer: Option<bool>,
code: Option<u32>,
},
Ringing {
track_id: String,
timestamp: u64,
early_media: bool,
refer: Option<bool>,
},
Hangup {
track_id: String,
timestamp: u64,
reason: Option<String>,
initiator: Option<String>,
start_time: String,
hangup_time: String,
answer_time: Option<String>,
ringing_time: Option<String>,
from: Option<Attendee>,
to: Option<Attendee>,
extra: Option<HashMap<String, Value>>,
refer: Option<bool>,
},
AnswerMachineDetection {
track_id: String,
timestamp: u64,
start_time: u64,
end_time: u64,
text: String,
},
Interrupt {
receiver: Option<String>,
},
FunctionCall {
track_id: String,
call_id: String,
name: String,
arguments: String,
timestamp: u64,
},
Speaking {
track_id: String,
timestamp: u64,
start_time: u64,
is_filler: Option<bool>,
confidence: Option<f32>,
},
Silence {
track_id: String,
timestamp: u64,
start_time: u64,
duration: u64,
samples: Option<PcmBuf>,
},
Eou {
track_id: String,
timestamp: u64,
completed: bool,
interrupt_point: Option<String>,
},
Inactivity {
track_id: String,
timestamp: u64,
},
Dtmf {
track_id: String,
timestamp: u64,
digit: String,
},
Hold {
track_id: String,
timestamp: u64,
on_hold: bool,
},
TrackStart {
track_id: String,
timestamp: u64,
play_id: Option<String>,
},
TrackEnd {
track_id: String,
timestamp: u64,
duration: u64,
ssrc: u32,
play_id: Option<String>,
},
Interruption {
track_id: String,
timestamp: u64,
play_id: Option<String>,
subtitle: Option<String>,
position: Option<u32>,
total_duration: u32,
current: u32,
},
AsrFinal {
track_id: String,
timestamp: u64,
index: u32,
start_time: Option<u64>,
end_time: Option<u64>,
text: String,
is_filler: Option<bool>,
confidence: Option<f32>,
task_id: Option<String>,
},
AsrDelta {
track_id: String,
index: u32,
timestamp: u64,
start_time: Option<u64>,
end_time: Option<u64>,
text: String,
is_filler: Option<bool>,
confidence: Option<f32>,
task_id: Option<String>,
},
Metrics {
timestamp: u64,
key: String,
duration: u32,
data: Value,
},
Error {
track_id: String,
timestamp: u64,
sender: String,
error: String,
code: Option<u32>,
},
AddHistory {
sender: Option<String>,
timestamp: u64,
speaker: String,
text: String,
},
Other {
track_id: String,
timestamp: u64,
sender: String,
extra: Option<HashMap<String, String>>,
},
Binary {
track_id: String,
timestamp: u64,
data: Vec<u8>,
},
Ping {
timestamp: u64,
payload: Option<String>,
},
}Variants§
Incoming
Answer
Reject
Ringing
Hangup
Fields
AnswerMachineDetection
Interrupt
FunctionCall
Speaking
Fields
Silence
Eou
End of Utterance
Inactivity
Inactivity timeout
Dtmf
Hold
TrackStart
TrackEnd
Interruption
Fields
AsrFinal
Fields
AsrDelta
Fields
Metrics
Error
AddHistory
Other
Binary
Ping
Trait Implementations§
Source§impl Clone for SessionEvent
impl Clone for SessionEvent
Source§fn clone(&self) -> SessionEvent
fn clone(&self) -> SessionEvent
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 moreSource§impl Debug for SessionEvent
impl Debug for SessionEvent
Source§impl<'de> Deserialize<'de> for SessionEvent
impl<'de> Deserialize<'de> for SessionEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SessionEvent
impl Display for SessionEvent
Auto Trait Implementations§
impl Freeze for SessionEvent
impl RefUnwindSafe for SessionEvent
impl Send for SessionEvent
impl Sync for SessionEvent
impl Unpin for SessionEvent
impl UnsafeUnpin for SessionEvent
impl UnwindSafe for SessionEvent
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
fn to_sample_(self) -> U
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.