Enum qapi_qmp::BlockdevRef
source · pub enum BlockdevRef {
definition(Box<BlockdevOptions>),
reference(String),
}
Variants§
definition(Box<BlockdevOptions>)
reference(String)
Trait Implementations§
source§impl AsRef<BlockdevRef> for BlockdevOptionsBlkreplay
impl AsRef<BlockdevRef> for BlockdevOptionsBlkreplay
source§fn as_ref(&self) -> &BlockdevRef
fn as_ref(&self) -> &BlockdevRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<BlockdevRef> for BlockdevOptionsGenericFormat
impl AsRef<BlockdevRef> for BlockdevOptionsGenericFormat
source§fn as_ref(&self) -> &BlockdevRef
fn as_ref(&self) -> &BlockdevRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for BlockdevRef
impl Clone for BlockdevRef
source§fn clone(&self) -> BlockdevRef
fn clone(&self) -> BlockdevRef
Returns a copy 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 moresource§impl Debug for BlockdevRef
impl Debug for BlockdevRef
source§impl<'de> Deserialize<'de> for BlockdevRef
impl<'de> Deserialize<'de> for BlockdevRef
source§fn 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 BlockdevRef
impl Send for BlockdevRef
impl Sync for BlockdevRef
impl Unpin for BlockdevRef
impl UnwindSafe for BlockdevRef
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