pub enum VoiceAdmission {
Started(VoiceHandle),
Stolen {
handle: VoiceHandle,
replaced: VoiceHandle,
},
Rejected(VoiceRejection),
}Expand description
Explicit admission result, including the invalidated handle after a steal.
See Mixer::start_with_outcome for a compiling example.
Variants§
Implementations§
Source§impl VoiceAdmission
impl VoiceAdmission
Sourcepub fn handle(self) -> Option<VoiceHandle>
pub fn handle(self) -> Option<VoiceHandle>
The new handle on success. See Mixer::start_with_outcome.
Sourcepub fn replaced(self) -> Option<VoiceHandle>
pub fn replaced(self) -> Option<VoiceHandle>
The stale handle invalidated by a steal, otherwise None.
See Mixer::start_with_outcome.
Sourcepub fn rejection(self) -> Option<VoiceRejection>
pub fn rejection(self) -> Option<VoiceRejection>
The rejection reason, otherwise None. See Mixer::start_with_outcome.
Trait Implementations§
Source§impl Clone for VoiceAdmission
impl Clone for VoiceAdmission
Source§fn clone(&self) -> VoiceAdmission
fn clone(&self) -> VoiceAdmission
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoiceAdmission
impl Debug for VoiceAdmission
Source§impl PartialEq for VoiceAdmission
impl PartialEq for VoiceAdmission
impl Copy for VoiceAdmission
impl Eq for VoiceAdmission
impl StructuralPartialEq for VoiceAdmission
Auto Trait Implementations§
impl Freeze for VoiceAdmission
impl RefUnwindSafe for VoiceAdmission
impl Send for VoiceAdmission
impl Sync for VoiceAdmission
impl Unpin for VoiceAdmission
impl UnwindSafe for VoiceAdmission
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