Skip to main content

Event

Enum Event 

Source
pub enum Event {
    PermissionStatus {
        permission: Permission,
        status: PermissionGranted,
    },
    PermissionsGranted,
    MeetingDetected {
        app: String,
    },
    MeetingUpdated {
        app: String,
        title: String,
    },
    MeetingEnded {
        app: String,
    },
    RecordingStarted {
        app: String,
    },
    RecordingEnded {
        app: String,
    },
    RecordingReady {
        path: PathBuf,
        app: String,
    },
    CaptureStatus {
        kind: CaptureKind,
        capturing: bool,
    },
    Error {
        message: String,
    },
}
Expand description

All events emitted by MeetingListener.

Register handlers with MeetingListener::on. Multiple handlers for the same event are all called in registration order.

Lifecycle order for a recorded meeting:

PermissionStatus × N  (macOS only, on start)
PermissionsGranted    (macOS only, once all perms OK)
MeetingDetected       (meeting begins)
MeetingUpdated        (title becomes known via window scan)
RecordingStarted      (if record() was called)
MeetingEnded          (meeting stops)
RecordingEnded        (capture stopped, WAV being written)
RecordingReady        (WAV file written to disk)

Variants§

§

PermissionStatus

Status of an individual permission, emitted once per permission on MeetingListener::start. macOS only; not emitted on Windows / Linux where no permissions are required.

Fields

§permission: Permission
§

PermissionsGranted

All required permissions are granted; recording can proceed. Emitted immediately on non-macOS platforms.

§

MeetingDetected

A Teams / Zoom / Google Meet session was detected (new start, or already in progress when the listener started).

Fields

§

MeetingUpdated

Meeting metadata became known — currently the window title once the window watcher identifies the call window.

Fields

§title: String
§

MeetingEnded

The meeting has ended.

Fields

§

RecordingStarted

Audio capture has begun. Fired when MeetingListener::record successfully starts the system audio tap.

Fields

§

RecordingEnded

Audio capture has stopped. The WAV is being written; expect Event::RecordingReady shortly after.

Fields

§

RecordingReady

A completed WAV recording is available at path. Only fired when MeetingListener::record (or MeetingListener::auto_record) was active during the meeting.

Fields

§path: PathBuf
§

CaptureStatus

The audio or video capture stream was interrupted or resumed. For example, moving the meeting window to an inactive virtual desktop may interrupt capture.

Fields

§capturing: bool
§

Error

An error occurred (e.g. the audio tap failed to start).

Fields

§message: String

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Event

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.