pub struct Event {
pub time: String,
pub kind: &'static str,
pub id: u32,
pub number: Option<String>,
pub name: Option<String>,
pub own_number: Option<String>,
pub extension: Option<String>,
pub line: Option<String>,
pub seconds: Option<u64>,
}Expand description
An event of a call.
Fields§
§time: StringLike 2026-11-23 18:02:11, in the time zone of the device.
kind: &'static strring (incoming), call (outgoing), connect or disconnect.
id: u32The connection: the events of a call share it.
number: Option<String>The number of the other party, none if it is withheld.
name: Option<String>The name of the other party, from the phonebooks.
own_number: Option<String>The own number the call came in on or went out from.
extension: Option<String>The internal number of the phone, for call and connect.
line: Option<String>The line, like SIP0, for ring and call.
seconds: Option<u64>How long the call took, for disconnect.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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