#[repr(transparent)]pub struct Token(pub c_int);Tuple Fields§
§0: c_intImplementations§
Source§impl Token
impl Token
pub const INVALID: Self
pub fn is_invalid(self) -> bool
pub fn check(self) -> Result<bool>
pub fn cancel(self) -> Result
pub fn suspend(self) -> Result
pub fn resume(self) -> Result
pub fn set_state(self, state: u64) -> Result
pub fn state(self) -> Result<u64>
pub fn is_valid(self) -> bool
Trait Implementations§
impl Copy for Token
impl Eq for Token
Source§impl Ord for Token
impl Ord for Token
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 PartialOrd for Token
impl PartialOrd for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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