pub struct AttrRsrcLockState { /* private fields */ }
Expand description
VI_ATTR_RSRC_LOCK_STATE indicates the current locking state of the resource. The resource can be unlocked, locked with an exclusive lock, or locked with a shared lock.
Implementations
sourceimpl AttrRsrcLockState
impl AttrRsrcLockState
pub fn into_inner(self) -> ViAccessMode
sourceimpl AttrRsrcLockState
impl AttrRsrcLockState
pub const VI_NO_LOCK: Self = Self{value: 0 as _,}
pub const VI_EXCLUSIVE_LOCK: Self = Self{value: 1 as _,}
pub const VI_SHARED_LOCK: Self = Self{value: 2 as _,}
pub unsafe fn new_unchecked(value: ViAccessMode) -> Self
pub fn new_checked(value: ViAccessMode) -> Option<Self>
Trait Implementations
sourceimpl AttrInner for AttrRsrcLockState
impl AttrInner for AttrRsrcLockState
sourceimpl Clone for AttrRsrcLockState
impl Clone for AttrRsrcLockState
sourcefn clone(&self) -> AttrRsrcLockState
fn clone(&self) -> AttrRsrcLockState
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 AttrRsrcLockState
impl Debug for AttrRsrcLockState
sourceimpl Default for AttrRsrcLockState
impl Default for AttrRsrcLockState
sourceimpl From<AttrRsrcLockState> for Attribute
impl From<AttrRsrcLockState> for Attribute
sourcefn from(s: AttrRsrcLockState) -> Self
fn from(s: AttrRsrcLockState) -> Self
Converts to this type from the input type.
sourceimpl Hash for AttrRsrcLockState
impl Hash for AttrRsrcLockState
sourceimpl Ord for AttrRsrcLockState
impl Ord for AttrRsrcLockState
sourceimpl PartialEq<AttrRsrcLockState> for AttrRsrcLockState
impl PartialEq<AttrRsrcLockState> for AttrRsrcLockState
sourcefn eq(&self, other: &AttrRsrcLockState) -> bool
fn eq(&self, other: &AttrRsrcLockState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AttrRsrcLockState) -> bool
fn ne(&self, other: &AttrRsrcLockState) -> bool
This method tests for !=
.
sourceimpl PartialOrd<AttrRsrcLockState> for AttrRsrcLockState
impl PartialOrd<AttrRsrcLockState> for AttrRsrcLockState
sourcefn partial_cmp(&self, other: &AttrRsrcLockState) -> Option<Ordering>
fn partial_cmp(&self, other: &AttrRsrcLockState) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for AttrRsrcLockState
impl StructuralEq for AttrRsrcLockState
impl StructuralPartialEq for AttrRsrcLockState
Auto Trait Implementations
impl RefUnwindSafe for AttrRsrcLockState
impl Send for AttrRsrcLockState
impl Sync for AttrRsrcLockState
impl Unpin for AttrRsrcLockState
impl UnwindSafe for AttrRsrcLockState
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