pub enum BackgroundOption {
Async,
Queue,
Blocking,
}Variants§
Implementations§
Source§impl BackgroundOption
impl BackgroundOption
pub fn user_message(&self) -> Option<String>
pub const fn prompt_view(&self) -> &str
Trait Implementations§
Source§impl Clone for BackgroundOption
impl Clone for BackgroundOption
Source§fn clone(&self) -> BackgroundOption
fn clone(&self) -> BackgroundOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackgroundOption
impl Debug for BackgroundOption
Source§impl Default for BackgroundOption
impl Default for BackgroundOption
Source§fn default() -> BackgroundOption
fn default() -> BackgroundOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackgroundOption
impl<'de> Deserialize<'de> for BackgroundOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BackgroundOption
impl Display for BackgroundOption
Source§impl From<BackgroundOption> for Option<Background>
impl From<BackgroundOption> for Option<Background>
Source§fn from(bg: BackgroundOption) -> Self
fn from(bg: BackgroundOption) -> Self
Converts to this type from the input type.
Source§impl IntoEnumIterator for BackgroundOption
impl IntoEnumIterator for BackgroundOption
type Iterator = BackgroundOptionIter
fn iter() -> BackgroundOptionIter ⓘ
Source§impl PartialEq for BackgroundOption
impl PartialEq for BackgroundOption
Source§fn eq(&self, other: &BackgroundOption) -> bool
fn eq(&self, other: &BackgroundOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BackgroundOption
impl Serialize for BackgroundOption
Source§impl ValueEnum for BackgroundOption
impl ValueEnum for BackgroundOption
impl Eq for BackgroundOption
impl StructuralPartialEq for BackgroundOption
Auto Trait Implementations§
impl Freeze for BackgroundOption
impl RefUnwindSafe for BackgroundOption
impl Send for BackgroundOption
impl Sync for BackgroundOption
impl Unpin for BackgroundOption
impl UnsafeUnpin for BackgroundOption
impl UnwindSafe for BackgroundOption
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