pub struct Devices {
pub char_devices: Vec<CharDeviceEntry>,
pub block_devices: Vec<BlockDeviceEntry>,
}
Expand description
Device entries under /proc/devices
Fields§
§char_devices: Vec<CharDeviceEntry>
Character devices
block_devices: Vec<BlockDeviceEntry>
Block devices, which can be empty if the kernel doesn’t support block devices (without CONFIG_BLOCK
)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Devices
impl<'de> Deserialize<'de> for Devices
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Devices, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Devices, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromBufRead for Devices
impl FromBufRead for Devices
Source§impl Serialize for Devices
impl Serialize for Devices
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Devices
impl RefUnwindSafe for Devices
impl Send for Devices
impl Sync for Devices
impl Unpin for Devices
impl UnwindSafe for Devices
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