pub struct NativeDialogCapacity(/* private fields */);Expand description
Dialog operations the view-process implements.
Implementations§
Source§impl DialogCapability
impl DialogCapability
Sourcepub const MESSAGE: DialogCapability
pub const MESSAGE: DialogCapability
View-process can show message dialogs.
Sourcepub const OPEN_FILE: DialogCapability
pub const OPEN_FILE: DialogCapability
View-process can show single file picker.
Sourcepub const OPEN_FILES: DialogCapability
pub const OPEN_FILES: DialogCapability
View-process can show multi file picker.
Sourcepub const SAVE_FILE: DialogCapability
pub const SAVE_FILE: DialogCapability
View-process can show save single file picker.
Sourcepub const SELECT_FOLDER: DialogCapability
pub const SELECT_FOLDER: DialogCapability
View-process can show single directory picker.
Sourcepub const SELECT_FOLDERS: DialogCapability
pub const SELECT_FOLDERS: DialogCapability
View-process can show multi directory picker.
Sourcepub const NOTIFICATION: DialogCapability
pub const NOTIFICATION: DialogCapability
View-process can insert notifications in the system list.
Sourcepub const NOTIFICATION_ACTIONS: DialogCapability
pub const NOTIFICATION_ACTIONS: DialogCapability
View-process can show custom actions for dismissing the notification.
Sourcepub const CLOSE_NOTIFICATION: DialogCapability
pub const CLOSE_NOTIFICATION: DialogCapability
View-process can handle the special close notification update that removes the notification.
Sourcepub const UPDATE_NOTIFICATION: DialogCapability
pub const UPDATE_NOTIFICATION: DialogCapability
View-process can update notification content.
Source§impl DialogCapability
impl DialogCapability
Sourcepub const fn empty() -> DialogCapability
pub const fn empty() -> DialogCapability
Get a flags value with all bits unset.
Sourcepub const fn all() -> DialogCapability
pub const fn all() -> DialogCapability
Get a flags value with all known bits set.
Sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u32) -> Option<DialogCapability>
pub const fn from_bits(bits: u32) -> Option<DialogCapability>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u32) -> DialogCapability
pub const fn from_bits_truncate(bits: u32) -> DialogCapability
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u32) -> DialogCapability
pub const fn from_bits_retain(bits: u32) -> DialogCapability
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<DialogCapability>
pub fn from_name(name: &str) -> Option<DialogCapability>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(&self, other: DialogCapability) -> bool
pub const fn intersects(&self, other: DialogCapability) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: DialogCapability) -> bool
pub const fn contains(&self, other: DialogCapability) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn insert(&mut self, other: DialogCapability)
pub fn insert(&mut self, other: DialogCapability)
The bitwise or (|) of the bits in two flags values.
Sourcepub fn remove(&mut self, other: DialogCapability)
pub fn remove(&mut self, other: DialogCapability)
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
Sourcepub fn toggle(&mut self, other: DialogCapability)
pub fn toggle(&mut self, other: DialogCapability)
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub fn set(&mut self, other: DialogCapability, value: bool)
pub fn set(&mut self, other: DialogCapability, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(self, other: DialogCapability) -> DialogCapability
pub const fn intersection(self, other: DialogCapability) -> DialogCapability
The bitwise and (&) of the bits in two flags values.
Sourcepub const fn union(self, other: DialogCapability) -> DialogCapability
pub const fn union(self, other: DialogCapability) -> DialogCapability
The bitwise or (|) of the bits in two flags values.
Sourcepub const fn difference(self, other: DialogCapability) -> DialogCapability
pub const fn difference(self, other: DialogCapability) -> DialogCapability
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Sourcepub const fn symmetric_difference(
self,
other: DialogCapability,
) -> DialogCapability
pub const fn symmetric_difference( self, other: DialogCapability, ) -> DialogCapability
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub const fn complement(self) -> DialogCapability
pub const fn complement(self) -> DialogCapability
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§impl DialogCapability
impl DialogCapability
Sourcepub const fn iter(&self) -> Iter<DialogCapability>
pub const fn iter(&self) -> Iter<DialogCapability>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<DialogCapability>
pub const fn iter_names(&self) -> IterNames<DialogCapability>
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
Source§impl Binary for DialogCapability
impl Binary for DialogCapability
Source§impl BitAnd for DialogCapability
impl BitAnd for DialogCapability
Source§fn bitand(self, other: DialogCapability) -> DialogCapability
fn bitand(self, other: DialogCapability) -> DialogCapability
The bitwise and (&) of the bits in two flags values.
Source§type Output = DialogCapability
type Output = DialogCapability
& operator.Source§impl BitAndAssign for DialogCapability
impl BitAndAssign for DialogCapability
Source§fn bitand_assign(&mut self, other: DialogCapability)
fn bitand_assign(&mut self, other: DialogCapability)
The bitwise and (&) of the bits in two flags values.
Source§impl BitOr for DialogCapability
impl BitOr for DialogCapability
Source§fn bitor(self, other: DialogCapability) -> DialogCapability
fn bitor(self, other: DialogCapability) -> DialogCapability
The bitwise or (|) of the bits in two flags values.
Source§type Output = DialogCapability
type Output = DialogCapability
| operator.Source§impl BitOrAssign for DialogCapability
impl BitOrAssign for DialogCapability
Source§fn bitor_assign(&mut self, other: DialogCapability)
fn bitor_assign(&mut self, other: DialogCapability)
The bitwise or (|) of the bits in two flags values.
Source§impl BitXor for DialogCapability
impl BitXor for DialogCapability
Source§fn bitxor(self, other: DialogCapability) -> DialogCapability
fn bitxor(self, other: DialogCapability) -> DialogCapability
The bitwise exclusive-or (^) of the bits in two flags values.
Source§type Output = DialogCapability
type Output = DialogCapability
^ operator.Source§impl BitXorAssign for DialogCapability
impl BitXorAssign for DialogCapability
Source§fn bitxor_assign(&mut self, other: DialogCapability)
fn bitxor_assign(&mut self, other: DialogCapability)
The bitwise exclusive-or (^) of the bits in two flags values.
Source§impl Clone for DialogCapability
impl Clone for DialogCapability
Source§fn clone(&self) -> DialogCapability
fn clone(&self) -> DialogCapability
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DialogCapability
impl Debug for DialogCapability
Source§impl<'de> Deserialize<'de> for DialogCapability
impl<'de> Deserialize<'de> for DialogCapability
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DialogCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DialogCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Extend<DialogCapability> for DialogCapability
impl Extend<DialogCapability> for DialogCapability
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = DialogCapability>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = DialogCapability>,
The bitwise or (|) of the bits in each flags value.
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl Flags for DialogCapability
impl Flags for DialogCapability
Source§const FLAGS: &'static [Flag<DialogCapability>]
const FLAGS: &'static [Flag<DialogCapability>]
Source§fn from_bits_retain(bits: u32) -> DialogCapability
fn from_bits_retain(bits: u32) -> DialogCapability
§fn known_bits(&self) -> Self::Bits
fn known_bits(&self) -> Self::Bits
§fn unknown_bits(&self) -> Self::Bits
fn unknown_bits(&self) -> Self::Bits
§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
§fn iter_defined_names() -> IterDefinedNames<Self>
fn iter_defined_names() -> IterDefinedNames<Self>
Self::FLAGS].§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in two flags values.§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!). Read more§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in two flags values.§fn set(&mut self, other: Self, value: bool)where
Self: Sized,
fn set(&mut self, other: Self, value: bool)where
Self: Sized,
Flags::insert] when value is true or [Flags::remove] when value is false.§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in two flags values.§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!). Read more§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in two flags values.§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in a flags value, truncating the result.Source§impl FromIterator<DialogCapability> for DialogCapability
impl FromIterator<DialogCapability> for DialogCapability
Source§fn from_iter<T>(iterator: T) -> DialogCapabilitywhere
T: IntoIterator<Item = DialogCapability>,
fn from_iter<T>(iterator: T) -> DialogCapabilitywhere
T: IntoIterator<Item = DialogCapability>,
The bitwise or (|) of the bits in each flags value.
Source§impl Hash for DialogCapability
impl Hash for DialogCapability
Source§impl IntoIterator for DialogCapability
impl IntoIterator for DialogCapability
Source§type Item = DialogCapability
type Item = DialogCapability
Source§type IntoIter = Iter<DialogCapability>
type IntoIter = Iter<DialogCapability>
Source§fn into_iter(self) -> <DialogCapability as IntoIterator>::IntoIter
fn into_iter(self) -> <DialogCapability as IntoIterator>::IntoIter
Source§impl LowerHex for DialogCapability
impl LowerHex for DialogCapability
Source§impl Not for DialogCapability
impl Not for DialogCapability
Source§fn not(self) -> DialogCapability
fn not(self) -> DialogCapability
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§type Output = DialogCapability
type Output = DialogCapability
! operator.Source§impl Octal for DialogCapability
impl Octal for DialogCapability
Source§impl PartialEq for DialogCapability
impl PartialEq for DialogCapability
Source§impl Serialize for DialogCapability
impl Serialize for DialogCapability
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl Sub for DialogCapability
impl Sub for DialogCapability
Source§fn sub(self, other: DialogCapability) -> DialogCapability
fn sub(self, other: DialogCapability) -> DialogCapability
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Source§type Output = DialogCapability
type Output = DialogCapability
- operator.Source§impl SubAssign for DialogCapability
impl SubAssign for DialogCapability
Source§fn sub_assign(&mut self, other: DialogCapability)
fn sub_assign(&mut self, other: DialogCapability)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Source§impl UpperHex for DialogCapability
impl UpperHex for DialogCapability
impl Copy for DialogCapability
impl Eq for DialogCapability
impl StructuralPartialEq for DialogCapability
Auto Trait Implementations§
impl Freeze for DialogCapability
impl RefUnwindSafe for DialogCapability
impl Send for DialogCapability
impl Sync for DialogCapability
impl Unpin for DialogCapability
impl UnwindSafe for DialogCapability
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
self and other are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
other if both are of the same type.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.Source§impl<T> FsChangeNote for T
impl<T> FsChangeNote for T
§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