Struct distant_core::ManagerCapabilities
source · [−]pub struct ManagerCapabilities(_);
Expand description
Set of supported capabilities for a manager
Implementations
sourceimpl ManagerCapabilities
impl ManagerCapabilities
sourcepub fn contains(&self, kind: impl AsRef<str>) -> bool
pub fn contains(&self, kind: impl AsRef<str>) -> bool
Returns true if the capability with described kind is included
sourcepub fn insert(&mut self, cap: impl Into<ManagerCapability>) -> bool
pub fn insert(&mut self, cap: impl Into<ManagerCapability>) -> bool
Adds the specified capability to the set of capabilities
- If the set did not have this capability, returns
true
- If the set did have this capability, returns
false
sourcepub fn take(&mut self, kind: impl AsRef<str>) -> Option<ManagerCapability>
pub fn take(&mut self, kind: impl AsRef<str>) -> Option<ManagerCapability>
Removes the capability with the described kind, returning the capability
sourcepub fn remove(&mut self, kind: impl AsRef<str>) -> bool
pub fn remove(&mut self, kind: impl AsRef<str>) -> bool
Removes the capability with the described kind, returning true if it existed
sourcepub fn into_sorted_vec(self) -> Vec<ManagerCapability>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn into_sorted_vec(self) -> Vec<ManagerCapability>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Converts into vec of capabilities sorted by kind
Trait Implementations
sourceimpl BitAnd<&ManagerCapabilities> for &ManagerCapabilities
impl BitAnd<&ManagerCapabilities> for &ManagerCapabilities
sourceimpl BitOr<&ManagerCapabilities> for &ManagerCapabilities
impl BitOr<&ManagerCapabilities> for &ManagerCapabilities
sourceimpl BitOr<ManagerCapability> for &ManagerCapabilities
impl BitOr<ManagerCapability> for &ManagerCapabilities
type Output = ManagerCapabilities
type Output = ManagerCapabilities
The resulting type after applying the |
operator.
sourcefn bitor(self, rhs: ManagerCapability) -> Self::Output
fn bitor(self, rhs: ManagerCapability) -> Self::Output
Performs the |
operation. Read more
sourceimpl BitXor<&ManagerCapabilities> for &ManagerCapabilities
impl BitXor<&ManagerCapabilities> for &ManagerCapabilities
sourceimpl Clone for ManagerCapabilities
impl Clone for ManagerCapabilities
sourcefn clone(&self) -> ManagerCapabilities
fn clone(&self) -> ManagerCapabilities
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ManagerCapabilities
impl Debug for ManagerCapabilities
sourceimpl<'de> Deserialize<'de> for ManagerCapabilities
impl<'de> Deserialize<'de> for ManagerCapabilities
sourcefn 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
sourceimpl From<HashSet<ManagerCapability, RandomState>> for ManagerCapabilities
impl From<HashSet<ManagerCapability, RandomState>> for ManagerCapabilities
sourcefn from(original: HashSet<ManagerCapability>) -> ManagerCapabilities
fn from(original: HashSet<ManagerCapability>) -> ManagerCapabilities
Converts to this type from the input type.
sourceimpl From<ManagerCapabilities> for HashSet<ManagerCapability>
impl From<ManagerCapabilities> for HashSet<ManagerCapability>
sourcefn from(original: ManagerCapabilities) -> Self
fn from(original: ManagerCapabilities) -> Self
Converts to this type from the input type.
sourceimpl FromIterator<ManagerCapability> for ManagerCapabilities
impl FromIterator<ManagerCapability> for ManagerCapabilities
sourcefn from_iter<I: IntoIterator<Item = ManagerCapability>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = ManagerCapability>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime ManagerCapabilities
impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime ManagerCapabilities
type Item = <&'__deriveMoreLifetime HashSet<ManagerCapability, RandomState> as IntoIterator>::Item
type Item = <&'__deriveMoreLifetime HashSet<ManagerCapability, RandomState> as IntoIterator>::Item
The type of the elements being iterated over.
type IntoIter = <&'__deriveMoreLifetime HashSet<ManagerCapability, RandomState> as IntoIterator>::IntoIter
type IntoIter = <&'__deriveMoreLifetime HashSet<ManagerCapability, RandomState> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
sourceimpl IntoIterator for ManagerCapabilities
impl IntoIterator for ManagerCapabilities
type Item = <HashSet<ManagerCapability, RandomState> as IntoIterator>::Item
type Item = <HashSet<ManagerCapability, RandomState> as IntoIterator>::Item
The type of the elements being iterated over.
type IntoIter = <HashSet<ManagerCapability, RandomState> as IntoIterator>::IntoIter
type IntoIter = <HashSet<ManagerCapability, RandomState> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
sourceimpl PartialEq<ManagerCapabilities> for ManagerCapabilities
impl PartialEq<ManagerCapabilities> for ManagerCapabilities
sourcefn eq(&self, other: &ManagerCapabilities) -> bool
fn eq(&self, other: &ManagerCapabilities) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for ManagerCapabilities
impl Serialize for ManagerCapabilities
impl Eq for ManagerCapabilities
impl StructuralEq for ManagerCapabilities
impl StructuralPartialEq for ManagerCapabilities
Auto Trait Implementations
impl RefUnwindSafe for ManagerCapabilities
impl Send for ManagerCapabilities
impl Sync for ManagerCapabilities
impl Unpin for ManagerCapabilities
impl UnwindSafe for ManagerCapabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more