pub struct ChannelInitOptions {
pub fade_out_killing: bool,
}
Expand description
Options for initializing a new VoiceChannel.
Fields§
§fade_out_killing: bool
If set to true, the voices killed due to the voice limit will fade out. If set to false, they will be killed immediately, usually causing clicking but improving performance.
Default: false
Trait Implementations§
Source§impl Clone for ChannelInitOptions
impl Clone for ChannelInitOptions
Source§fn clone(&self) -> ChannelInitOptions
fn clone(&self) -> ChannelInitOptions
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 ChannelInitOptions
impl Debug for ChannelInitOptions
Source§impl Default for ChannelInitOptions
impl Default for ChannelInitOptions
Source§fn default() -> ChannelInitOptions
fn default() -> ChannelInitOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChannelInitOptions
impl PartialEq for ChannelInitOptions
impl Copy for ChannelInitOptions
impl StructuralPartialEq for ChannelInitOptions
Auto Trait Implementations§
impl Freeze for ChannelInitOptions
impl RefUnwindSafe for ChannelInitOptions
impl Send for ChannelInitOptions
impl Sync for ChannelInitOptions
impl Unpin for ChannelInitOptions
impl UnwindSafe for ChannelInitOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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>
Converts
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>
Converts
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