pub enum ResourceLockMode {
Shared,
Exclusive,
}Expand description
Shared vs exclusive lock for one scheduling resource slot.
Variants§
Exclusive
Trait Implementations§
Source§impl Clone for ResourceLockMode
impl Clone for ResourceLockMode
Source§fn clone(&self) -> ResourceLockMode
fn clone(&self) -> ResourceLockMode
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 moreimpl Copy for ResourceLockMode
Source§impl Debug for ResourceLockMode
impl Debug for ResourceLockMode
impl Eq for ResourceLockMode
Source§impl Ord for ResourceLockMode
impl Ord for ResourceLockMode
Source§fn cmp(&self, other: &ResourceLockMode) -> Ordering
fn cmp(&self, other: &ResourceLockMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResourceLockMode
impl PartialEq for ResourceLockMode
Source§fn eq(&self, other: &ResourceLockMode) -> bool
fn eq(&self, other: &ResourceLockMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ResourceLockMode
impl PartialOrd for ResourceLockMode
impl StructuralPartialEq for ResourceLockMode
Auto Trait Implementations§
impl Freeze for ResourceLockMode
impl RefUnwindSafe for ResourceLockMode
impl Send for ResourceLockMode
impl Sync for ResourceLockMode
impl Unpin for ResourceLockMode
impl UnsafeUnpin for ResourceLockMode
impl UnwindSafe for ResourceLockMode
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