Struct qapi_qmp::DriveMirror
source · [−]pub struct DriveMirror {Show 17 fields
pub format: Option<String>,
pub job_id: Option<String>,
pub device: String,
pub mode: Option<NewImageMode>,
pub buf_size: Option<i32>,
pub sync: MirrorSyncMode,
pub speed: Option<i32>,
pub on_source_error: Option<BlockdevOnError>,
pub unmap: Option<bool>,
pub replaces: Option<String>,
pub auto_finalize: Option<bool>,
pub auto_dismiss: Option<bool>,
pub on_target_error: Option<BlockdevOnError>,
pub target: String,
pub node_name: Option<String>,
pub granularity: Option<u32>,
pub copy_mode: Option<MirrorCopyMode>,
}Fields
format: Option<String>job_id: Option<String>device: Stringmode: Option<NewImageMode>buf_size: Option<i32>sync: MirrorSyncModespeed: Option<i32>on_source_error: Option<BlockdevOnError>unmap: Option<bool>replaces: Option<String>auto_finalize: Option<bool>auto_dismiss: Option<bool>on_target_error: Option<BlockdevOnError>target: Stringnode_name: Option<String>granularity: Option<u32>copy_mode: Option<MirrorCopyMode>Trait Implementations
sourceimpl Clone for DriveMirror
impl Clone for DriveMirror
sourcefn clone(&self) -> DriveMirror
fn clone(&self) -> DriveMirror
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DriveMirror
impl Debug for DriveMirror
sourceimpl<'de> Deserialize<'de> for DriveMirror
impl<'de> Deserialize<'de> for DriveMirror
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
sourceimpl From<DriveMirror> for drive_mirror
impl From<DriveMirror> for drive_mirror
sourcefn from(val: DriveMirror) -> Self
fn from(val: DriveMirror) -> Self
Converts to this type from the input type.
sourceimpl Serialize for DriveMirror
impl Serialize for DriveMirror
Auto Trait Implementations
impl RefUnwindSafe for DriveMirror
impl Send for DriveMirror
impl Sync for DriveMirror
impl Unpin for DriveMirror
impl UnwindSafe for DriveMirror
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more