Enum brane_dsl::location::AllowedLocations
source · pub enum AllowedLocations {
All,
Exclusive(HashSet<Location>),
}
Expand description
Defines an enum that says something about the range of the location.
Variants§
All
Everything is allowed (policy-wise).
Exclusive(HashSet<Location>)
There is a restricted set of locations.
Implementations§
source§impl AllowedLocations
impl AllowedLocations
sourcepub fn intersection(&mut self, other: &mut AllowedLocations)
pub fn intersection(&mut self, other: &mut AllowedLocations)
Computes the intersection between this AllowedLocations and the given one.
In other words, after running, this AllowedLocation contains only locations allowed by both.
§Arguments
other
: The other AllowedLocations to take the intersection with.
sourcepub fn is_exclusive(&self) -> bool
pub fn is_exclusive(&self) -> bool
Returns whether only specific locations are allowed right now.
Trait Implementations§
source§impl AsRef<AllowedLocations> for AllowedLocations
impl AsRef<AllowedLocations> for AllowedLocations
source§fn as_ref(&self) -> &AllowedLocations
fn as_ref(&self) -> &AllowedLocations
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for AllowedLocations
impl Clone for AllowedLocations
source§fn clone(&self) -> AllowedLocations
fn clone(&self) -> AllowedLocations
Returns a copy 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 AllowedLocations
impl Debug for AllowedLocations
source§impl From<Location> for AllowedLocations
impl From<Location> for AllowedLocations
source§impl PartialEq for AllowedLocations
impl PartialEq for AllowedLocations
impl Eq for AllowedLocations
impl StructuralPartialEq for AllowedLocations
Auto Trait Implementations§
impl Freeze for AllowedLocations
impl RefUnwindSafe for AllowedLocations
impl Send for AllowedLocations
impl Sync for AllowedLocations
impl Unpin for AllowedLocations
impl UnwindSafe for AllowedLocations
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request