Struct cxl_rs::Memdev [−][src]
pub struct Memdev { /* fields omitted */ }
Expand description
A CXL memory device.
Implementations
impl Memdev
[src]
impl Memdev
[src]impl Memdev
[src]
impl Memdev
[src]pub fn identify(&self) -> Result<IdentifyPayload, Error>
[src]
pub fn identify(&self) -> Result<IdentifyPayload, Error>
[src]Returns the output from the IDENTIFY command.
The identify command may or may not actually be run as a result of this. The function may used cached information.
Examples
let memdev = cxl_rs::Memdev::new("foo").expect("Bad memory device"); let id = memdev.identify()?; println!("Found device with {} capacity", id.total_capacity);
Trait Implementations
impl<'de> Deserialize<'de> for Memdev
[src]
impl<'de> Deserialize<'de> for Memdev
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Memdev
impl Send for Memdev
impl Sync for Memdev
impl Unpin for Memdev
impl UnwindSafe for Memdev
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,