pub struct SpdkThread { /* private fields */ }Expand description
SPDK thread wrapper
Implementations§
Source§impl SpdkThread
impl SpdkThread
pub fn current() -> Self
pub fn is_current(&self) -> bool
pub fn core_count() -> u32
pub fn is_running(&self) -> bool
pub fn is_exited(&self) -> bool
pub fn new(name: &str) -> Self
pub fn new_at_cores<I>(name: &str, cores: I) -> Selfwhere
I: IntoIterator<Item = u32>,
pub fn new_at_cpuset(name: &str, cpuset: Option<&CpuSet>) -> Self
pub fn id(&self) -> u64
pub fn spawn<F>(&self, fut: F)
pub fn request_exit(&self)
Trait Implementations§
Source§impl Clone for SpdkThread
impl Clone for SpdkThread
Source§fn clone(&self) -> SpdkThread
fn clone(&self) -> SpdkThread
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Send for SpdkThread
impl Sync for SpdkThread
Auto Trait Implementations§
impl Freeze for SpdkThread
impl RefUnwindSafe for SpdkThread
impl Unpin for SpdkThread
impl UnsafeUnpin for SpdkThread
impl UnwindSafe for SpdkThread
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