pub enum Event {
ConnectionStateChange(ConnectionState),
SelectedCandidatePairChange(Box<Candidate>, Box<Candidate>),
RoleChange(bool),
}Expand description
What the agent reports to its caller.
Variants§
ConnectionStateChange(ConnectionState)
The agent’s connection state changed.
SelectedCandidatePairChange(Box<Candidate>, Box<Candidate>)
A new pair was selected, carrying the local and remote candidates.
Media should be sent on this pair from now on.
RoleChange(bool)
Emitted when the ICE role switches due to a role conflict (RFC 8445 §7.3.1.1).
The bool is true if the agent is now controlling, false if now controlled.
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> 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