pub struct BlockInfo {
pub inserted: Option<BlockDeviceInfo>,
pub io_status: Option<BlockDeviceIoStatus>,
pub qdev: Option<String>,
pub tray_open: Option<bool>,
pub device: String,
pub locked: bool,
pub removable: bool,
pub type_: String,
}Fields
inserted: Option<BlockDeviceInfo>io_status: Option<BlockDeviceIoStatus>qdev: Option<String>tray_open: Option<bool>device: Stringlocked: boolremovable: booltype_: StringTrait Implementations
sourceimpl<'de> Deserialize<'de> for BlockInfo
impl<'de> Deserialize<'de> for BlockInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BlockInfo
impl Send for BlockInfo
impl Sync for BlockInfo
impl Unpin for BlockInfo
impl UnwindSafe for BlockInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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