pub struct RunCapSystem { /* private fields */ }Expand description
Implementations§
Source§impl RunCapSystem
Named constants
impl RunCapSystem
Named constants
Source§impl RunCapSystem
Convenience methods derived from each named constant.
impl RunCapSystem
Convenience methods derived from each named constant.
Sourcepub const fn contains_time(self) -> bool
pub const fn contains_time(self) -> bool
Returns true if all bits in TIME are present.
Sourcepub const fn intersects_time(self) -> bool
pub const fn intersects_time(self) -> bool
Returns true if the set shares any bit with TIME.
Sourcepub const fn with_time_if(self, condition: bool) -> Self
pub const fn with_time_if(self, condition: bool) -> Self
Returns self with TIME inserted if condition is true.
Sourcepub const fn without_time(self) -> Self
pub const fn without_time(self) -> Self
Returns self with TIME removed.
Sourcepub const fn set_time_if(&mut self, condition: bool)
pub const fn set_time_if(&mut self, condition: bool)
Sets TIME if condition is true.
Sourcepub const fn unset_time(&mut self)
pub const fn unset_time(&mut self)
Unsets TIME.
Sourcepub const fn contains_timer(self) -> bool
pub const fn contains_timer(self) -> bool
Returns true if all bits in TIMER are present.
Sourcepub const fn intersects_timer(self) -> bool
pub const fn intersects_timer(self) -> bool
Returns true if the set shares any bit with TIMER.
Sourcepub const fn with_timer(self) -> Self
pub const fn with_timer(self) -> Self
Returns self with TIMER inserted.
Sourcepub const fn with_timer_if(self, condition: bool) -> Self
pub const fn with_timer_if(self, condition: bool) -> Self
Returns self with TIMER inserted if condition is true.
Sourcepub const fn without_timer(self) -> Self
pub const fn without_timer(self) -> Self
Returns self with TIMER removed.
Sourcepub const fn set_timer_if(&mut self, condition: bool)
pub const fn set_timer_if(&mut self, condition: bool)
Sets TIMER if condition is true.
Sourcepub const fn unset_timer(&mut self)
pub const fn unset_timer(&mut self)
Unsets TIMER.
Sourcepub const fn has_random(self) -> bool
pub const fn has_random(self) -> bool
Returns true if RANDOM is present.
Sourcepub const fn contains_random(self) -> bool
pub const fn contains_random(self) -> bool
Returns true if all bits in RANDOM are present.
Sourcepub const fn intersects_random(self) -> bool
pub const fn intersects_random(self) -> bool
Returns true if the set shares any bit with RANDOM.
Sourcepub const fn with_random(self) -> Self
pub const fn with_random(self) -> Self
Returns self with RANDOM inserted.
Sourcepub const fn with_random_if(self, condition: bool) -> Self
pub const fn with_random_if(self, condition: bool) -> Self
Returns self with RANDOM inserted if condition is true.
Sourcepub const fn without_random(self) -> Self
pub const fn without_random(self) -> Self
Returns self with RANDOM removed.
Sourcepub const fn set_random(&mut self)
pub const fn set_random(&mut self)
Sets RANDOM.
Sourcepub const fn set_random_if(&mut self, condition: bool)
pub const fn set_random_if(&mut self, condition: bool)
Sets RANDOM if condition is true.
Sourcepub const fn unset_random(&mut self)
pub const fn unset_random(&mut self)
Unsets RANDOM.
Sourcepub const fn contains_env(self) -> bool
pub const fn contains_env(self) -> bool
Returns true if all bits in ENV are present.
Sourcepub const fn intersects_env(self) -> bool
pub const fn intersects_env(self) -> bool
Returns true if the set shares any bit with ENV.
Sourcepub const fn with_env_if(self, condition: bool) -> Self
pub const fn with_env_if(self, condition: bool) -> Self
Returns self with ENV inserted if condition is true.
Sourcepub const fn without_env(self) -> Self
pub const fn without_env(self) -> Self
Returns self with ENV removed.
Sourcepub const fn set_env_if(&mut self, condition: bool)
pub const fn set_env_if(&mut self, condition: bool)
Sets ENV if condition is true.
Sourcepub const fn contains_fs(self) -> bool
pub const fn contains_fs(self) -> bool
Returns true if all bits in FS are present.
Sourcepub const fn intersects_fs(self) -> bool
pub const fn intersects_fs(self) -> bool
Returns true if the set shares any bit with FS.
Sourcepub const fn with_fs_if(self, condition: bool) -> Self
pub const fn with_fs_if(self, condition: bool) -> Self
Returns self with FS inserted if condition is true.
Sourcepub const fn without_fs(self) -> Self
pub const fn without_fs(self) -> Self
Returns self with FS removed.
Sourcepub const fn has_process(self) -> bool
pub const fn has_process(self) -> bool
Returns true if PROCESS is present.
Sourcepub const fn contains_process(self) -> bool
pub const fn contains_process(self) -> bool
Returns true if all bits in PROCESS are present.
Sourcepub const fn intersects_process(self) -> bool
pub const fn intersects_process(self) -> bool
Returns true if the set shares any bit with PROCESS.
Sourcepub const fn with_process(self) -> Self
pub const fn with_process(self) -> Self
Returns self with PROCESS inserted.
Sourcepub const fn with_process_if(self, condition: bool) -> Self
pub const fn with_process_if(self, condition: bool) -> Self
Returns self with PROCESS inserted if condition is true.
Sourcepub const fn without_process(self) -> Self
pub const fn without_process(self) -> Self
Returns self with PROCESS removed.
Sourcepub const fn set_process(&mut self)
pub const fn set_process(&mut self)
Sets PROCESS.
Sourcepub const fn set_process_if(&mut self, condition: bool)
pub const fn set_process_if(&mut self, condition: bool)
Sets PROCESS if condition is true.
Sourcepub const fn unset_process(&mut self)
pub const fn unset_process(&mut self)
Unsets PROCESS.
Sourcepub const fn has_thread(self) -> bool
pub const fn has_thread(self) -> bool
Returns true if THREAD is present.
Sourcepub const fn contains_thread(self) -> bool
pub const fn contains_thread(self) -> bool
Returns true if all bits in THREAD are present.
Sourcepub const fn intersects_thread(self) -> bool
pub const fn intersects_thread(self) -> bool
Returns true if the set shares any bit with THREAD.
Sourcepub const fn with_thread(self) -> Self
pub const fn with_thread(self) -> Self
Returns self with THREAD inserted.
Sourcepub const fn with_thread_if(self, condition: bool) -> Self
pub const fn with_thread_if(self, condition: bool) -> Self
Returns self with THREAD inserted if condition is true.
Sourcepub const fn without_thread(self) -> Self
pub const fn without_thread(self) -> Self
Returns self with THREAD removed.
Sourcepub const fn set_thread(&mut self)
pub const fn set_thread(&mut self)
Sets THREAD.
Sourcepub const fn set_thread_if(&mut self, condition: bool)
pub const fn set_thread_if(&mut self, condition: bool)
Sets THREAD if condition is true.
Sourcepub const fn unset_thread(&mut self)
pub const fn unset_thread(&mut self)
Unsets THREAD.
Sourcepub const fn contains_net(self) -> bool
pub const fn contains_net(self) -> bool
Returns true if all bits in NET are present.
Sourcepub const fn intersects_net(self) -> bool
pub const fn intersects_net(self) -> bool
Returns true if the set shares any bit with NET.
Sourcepub const fn with_net_if(self, condition: bool) -> Self
pub const fn with_net_if(self, condition: bool) -> Self
Returns self with NET inserted if condition is true.
Sourcepub const fn without_net(self) -> Self
pub const fn without_net(self) -> Self
Returns self with NET removed.
Sourcepub const fn set_net_if(&mut self, condition: bool)
pub const fn set_net_if(&mut self, condition: bool)
Sets NET if condition is true.
Sourcepub const fn has_signal(self) -> bool
pub const fn has_signal(self) -> bool
Returns true if SIGNAL is present.
Sourcepub const fn contains_signal(self) -> bool
pub const fn contains_signal(self) -> bool
Returns true if all bits in SIGNAL are present.
Sourcepub const fn intersects_signal(self) -> bool
pub const fn intersects_signal(self) -> bool
Returns true if the set shares any bit with SIGNAL.
Sourcepub const fn with_signal(self) -> Self
pub const fn with_signal(self) -> Self
Returns self with SIGNAL inserted.
Sourcepub const fn with_signal_if(self, condition: bool) -> Self
pub const fn with_signal_if(self, condition: bool) -> Self
Returns self with SIGNAL inserted if condition is true.
Sourcepub const fn without_signal(self) -> Self
pub const fn without_signal(self) -> Self
Returns self with SIGNAL removed.
Sourcepub const fn set_signal(&mut self)
pub const fn set_signal(&mut self)
Sets SIGNAL.
Sourcepub const fn set_signal_if(&mut self, condition: bool)
pub const fn set_signal_if(&mut self, condition: bool)
Sets SIGNAL if condition is true.
Sourcepub const fn unset_signal(&mut self)
pub const fn unset_signal(&mut self)
Unsets SIGNAL.
Source§impl RunCapSystem
Common set methods
impl RunCapSystem
Common set methods
Source§impl RunCapSystem
Set operations
impl RunCapSystem
Set operations
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns true if self and other share any bit.
Sourcepub const fn is_subset(self, other: Self) -> bool
pub const fn is_subset(self, other: Self) -> bool
Returns true if all bits in self are also set in other.
Sourcepub const fn is_superset(self, other: Self) -> bool
pub const fn is_superset(self, other: Self) -> bool
Returns true if all bits in other are also set in self.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self and other.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference of self and other.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference of self and other.
Source§impl RunCapSystem
Mutating set operations
impl RunCapSystem
Mutating set operations
Trait Implementations§
Source§impl Binary for RunCapSystem
Formats the set as a binary mask over its declared bit domain.
impl Binary for RunCapSystem
Formats the set as a binary mask over its declared bit domain.
Source§impl BitAnd for RunCapSystem
impl BitAnd for RunCapSystem
Source§impl BitAndAssign for RunCapSystem
impl BitAndAssign for RunCapSystem
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for RunCapSystem
impl BitOr for RunCapSystem
Source§impl BitOrAssign for RunCapSystem
impl BitOrAssign for RunCapSystem
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitSized<{ $Set::_SET_BIT_SIZE }> for RunCapSystem
impl BitSized<{ $Set::_SET_BIT_SIZE }> for RunCapSystem
Source§const BIT_SIZE: usize = _
const BIT_SIZE: usize = _
Source§const MIN_BYTE_SIZE: usize = _
const MIN_BYTE_SIZE: usize = _
Source§fn bit_size(&self) -> usize
fn bit_size(&self) -> usize
Source§fn min_byte_size(&self) -> usize
fn min_byte_size(&self) -> usize
Source§impl BitXor for RunCapSystem
impl BitXor for RunCapSystem
Source§impl BitXorAssign for RunCapSystem
impl BitXorAssign for RunCapSystem
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for RunCapSystem
impl Clone for RunCapSystem
Source§fn clone(&self) -> RunCapSystem
fn clone(&self) -> RunCapSystem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ConstInit for RunCapSystem
impl ConstInit for RunCapSystem
impl Copy for RunCapSystem
Source§impl Debug for RunCapSystem
Formats the set as a prefixed binary mask over its declared bit domain.
impl Debug for RunCapSystem
Formats the set as a prefixed binary mask over its declared bit domain.
Source§impl DebugExt for RunCapSystemwhere
RunCapSystem: Debug,
impl DebugExt for RunCapSystemwhere
RunCapSystem: Debug,
Source§impl Default for RunCapSystem
impl Default for RunCapSystem
Source§impl Display for RunCapSystem
Formats the set as a prefixed binary mask over its declared bit domain.
impl Display for RunCapSystem
Formats the set as a prefixed binary mask over its declared bit domain.
impl Eq for RunCapSystem
Source§impl Hash for RunCapSystem
impl Hash for RunCapSystem
Source§impl LowerHex for RunCapSystem
Formats the set as a hexadecimal mask over its declared bit domain.
impl LowerHex for RunCapSystem
Formats the set as a hexadecimal mask over its declared bit domain.
Source§impl Not for RunCapSystem
impl Not for RunCapSystem
Source§impl Octal for RunCapSystem
Formats the set as an octal mask over its declared bit domain.
impl Octal for RunCapSystem
Formats the set as an octal mask over its declared bit domain.
Source§impl Ord for RunCapSystem
impl Ord for RunCapSystem
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RunCapSystem
impl PartialEq for RunCapSystem
Source§impl PartialOrd for RunCapSystem
impl PartialOrd for RunCapSystem
Source§impl Sub for RunCapSystem
impl Sub for RunCapSystem
Source§impl SubAssign for RunCapSystem
impl SubAssign for RunCapSystem
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreAuto Trait Implementations§
impl Freeze for RunCapSystem
impl RefUnwindSafe for RunCapSystem
impl Send for RunCapSystem
impl Sync for RunCapSystem
impl Unpin for RunCapSystem
impl UnsafeUnpin for RunCapSystem
impl UnwindSafe for RunCapSystem
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId of Self using a custom hasher.Source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Source§fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
alloc only.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> ByteSized for T
impl<T> ByteSized for T
Source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Source§fn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Source§fn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> MemExt for Twhere
T: ?Sized,
impl<T> MemExt for Twhere
T: ?Sized,
Source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Source§fn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Source§fn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Source§fn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Source§fn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true if dropping values of this type matters. Read moreSource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self without running its destructor. Read moreSource§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Source§unsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSource§unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSource§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
unsafe_slice only.