pub struct CommandOptions(pub u8);Expand description
Leave Command Options
Tuple Fields§
§0: u8Implementations§
Source§impl CommandOptions
impl CommandOptions
Sourcepub fn set_rejoin(self, value: bool) -> Self
pub fn set_rejoin(self, value: bool) -> Self
Sets the Rejoin flag
Sourcepub fn set_request(self, value: bool) -> Self
pub fn set_request(self, value: bool) -> Self
Sets the Request flag
Sourcepub fn remove_children(&self) -> bool
pub fn remove_children(&self) -> bool
Remove children flag
Sourcepub fn set_remove_children(self, value: bool) -> Self
pub fn set_remove_children(self, value: bool) -> Self
Sets the Remove children flag
Trait Implementations§
Source§impl Clone for CommandOptions
impl Clone for CommandOptions
impl Copy for CommandOptions
Source§impl Debug for CommandOptions
impl Debug for CommandOptions
impl Eq for CommandOptions
Source§impl PartialEq for CommandOptions
impl PartialEq for CommandOptions
impl StructuralPartialEq for CommandOptions
Source§impl<C: Default> TryRead<'_, C> for CommandOptions
impl<C: Default> TryRead<'_, C> for CommandOptions
Auto Trait Implementations§
impl Freeze for CommandOptions
impl RefUnwindSafe for CommandOptions
impl Send for CommandOptions
impl Sync for CommandOptions
impl Unpin for CommandOptions
impl UnsafeUnpin for CommandOptions
impl UnwindSafe for CommandOptions
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<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