pub type SessionEventCallback = Arc<dyn Fn(AtpSessionEvent, Option<&Session>) + Send + Sync>;Expand description
Callback registered via Agent::on_session.
Invoked synchronously on the task that produced the event; handlers
should not block for long. The Option<&Session> is Some for
Create / Update and None for CreateFailed / Expired /
NetworkError.
Aliased Typeยง
pub struct SessionEventCallback { /* private fields */ }