Enum swap::controller::Token
source · enum Token {
UffdEvents(u32),
Command,
BackgroundJobCompleted,
}
Variants§
Trait Implementations§
source§impl EventToken for Token
impl EventToken for Token
source§fn as_raw_token(&self) -> u64
fn as_raw_token(&self) -> u64
Converts this token into a u64 that can be turned back into a token via
from_raw_token
.source§fn from_raw_token(data: u64) -> Self
fn from_raw_token(data: u64) -> Self
Converts a raw token as returned from
as_raw_token
back into a token. Read moreimpl Copy for Token
Auto Trait Implementations§
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin 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