#[non_exhaustive]pub enum PlaybackEnd {
Completed,
Stopped,
Interrupted,
SessionEnded,
Refused,
}Expand description
How a playback ended.
A caller needs to be able to tell these apart: “the announcement finished”, “the application
cut it off”, “the caller pressed a key”, “the call went away underneath it” and “it never
played at all” lead to different next steps. Self::completed is the one-bit answer for
callers that only need to know whether the clip ran out.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Completed
The whole clip reached the send queue.
Stopped
Playback::stop cut it short.
Interrupted
A keypress from the far end cut it short — it was started Interrupt::OnDigit and the
far end pressed a key (RFC 4733). The keypress itself is still delivered to whoever is
reading MediaSession::recv_digit; interrupting consumes nothing.
SessionEnded
The session stopped, or the call ended, under a playback still running.
Refused
The playback queue was full (Playback::QUEUE_DEPTH clips already waiting), so nothing was
played at all.
Implementations§
Trait Implementations§
Source§impl Clone for PlaybackEnd
impl Clone for PlaybackEnd
Source§fn clone(&self) -> PlaybackEnd
fn clone(&self) -> PlaybackEnd
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PlaybackEnd
impl Debug for PlaybackEnd
Source§impl PartialEq for PlaybackEnd
impl PartialEq for PlaybackEnd
Source§fn eq(&self, other: &PlaybackEnd) -> bool
fn eq(&self, other: &PlaybackEnd) -> bool
self and other values to be equal, and is used by ==.impl Copy for PlaybackEnd
impl Eq for PlaybackEnd
impl StructuralPartialEq for PlaybackEnd
Auto Trait Implementations§
impl Freeze for PlaybackEnd
impl RefUnwindSafe for PlaybackEnd
impl Send for PlaybackEnd
impl Sync for PlaybackEnd
impl Unpin for PlaybackEnd
impl UnsafeUnpin for PlaybackEnd
impl UnwindSafe for PlaybackEnd
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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