pub enum ControlEvent {
RequestStart {
id: PeerId,
},
RequestStop {
id: PeerId,
},
Started {
id: PeerId,
},
Stopped {
id: PeerId,
error: Option<Error>,
},
}
Variants§
RequestStart
Request from Control to start the audio for a connected Peer.
Control::start() or Control::failed_request() should be called after this event
has been received; incompatible calls may return Error::InProgress
.
Fields
id: PeerId
RequestStop
Request from the Control to stop the audio to a connected Peer.
Any calls for which audio is currently routed to the HF for this peer will be transferred
to the AG.
Control::stop() should be called after this event has been received; incompatible
calls made in this state may return Error::InProgress
Note that Control::failed_request() may not be called for this event (audio can
always be stopped)
Fields
id: PeerId
Started
Event produced when an audio path has been started and audio is flowing to/from the peer.
Fields
id: PeerId
Stopped
Event produced when the audio path has been stopped and audio is not flowing to/from the peer. This event can be spontaeously produced by the Control implementation to indicate an error in the audio path (either during or after a requested start).
Implementations§
Source§impl ControlEvent
impl ControlEvent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ControlEvent
impl !RefUnwindSafe for ControlEvent
impl Send for ControlEvent
impl Sync for ControlEvent
impl Unpin for ControlEvent
impl !UnwindSafe for ControlEvent
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
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>
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>
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 more