pub enum DeviceHandle {
Starting {
dev_id: u32,
ctrl: UblkCtrlHandle,
queues: Arc<UblkQueueRuntime>,
},
Online {
dev_id: u32,
ctrl: UblkCtrlHandle,
queues: Arc<UblkQueueRuntime>,
},
ShuttingDown {
dev_id: u32,
ctrl: UblkCtrlHandle,
queues: Arc<UblkQueueRuntime>,
},
Failed {
dev_id: u32,
ctrl: Option<UblkCtrlHandle>,
queues: Option<Arc<UblkQueueRuntime>>,
last_error: String,
},
}Variants§
Implementations§
Source§impl DeviceHandle
impl DeviceHandle
pub fn dev_id(&self) -> u32
pub fn queues(&self) -> Option<Arc<UblkQueueRuntime>>
pub fn ctrl_mut(&mut self) -> Option<&mut UblkCtrlHandle>
pub fn ctrl(&self) -> Option<&UblkCtrlHandle>
pub fn is_online(&self) -> bool
pub fn recovery_pending(&self) -> bool
pub fn into_device(self) -> Option<SmooUblkDevice>
Auto Trait Implementations§
impl Freeze for DeviceHandle
impl !RefUnwindSafe for DeviceHandle
impl Send for DeviceHandle
impl Sync for DeviceHandle
impl Unpin for DeviceHandle
impl UnsafeUnpin for DeviceHandle
impl !UnwindSafe for DeviceHandle
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