pub struct PartialDrive {
pub drive_id: String,
pub path_on_host: Option<PathBuf>,
pub rate_limiter: Option<RateLimiter>,
}
Fieldsยง
ยงdrive_id: String
drive id Required: true
path_on_host: Option<PathBuf>
Host level path for the guest drive This field is optional for virtio-block config and should be omitted for vhost-user-block configuration.
rate_limiter: Option<RateLimiter>
rate limiter
Trait Implementationsยง
Sourceยงimpl Clone for PartialDrive
impl Clone for PartialDrive
Sourceยงfn clone(&self) -> PartialDrive
fn clone(&self) -> PartialDrive
Returns a duplicate 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 PartialDrive
impl Debug for PartialDrive
Sourceยงimpl<'de> Deserialize<'de> for PartialDrive
impl<'de> Deserialize<'de> for PartialDrive
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
Sourceยงimpl Hash for PartialDrive
impl Hash for PartialDrive
Sourceยงimpl Ord for PartialDrive
impl Ord for PartialDrive
Sourceยงfn cmp(&self, other: &PartialDrive) -> Ordering
fn cmp(&self, other: &PartialDrive) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for PartialDrive
impl PartialEq for PartialDrive
Sourceยงimpl PartialOrd for PartialDrive
impl PartialOrd for PartialDrive
Sourceยงimpl Serialize for PartialDrive
impl Serialize for PartialDrive
impl Eq for PartialDrive
impl StructuralPartialEq for PartialDrive
Auto Trait Implementationsยง
impl Freeze for PartialDrive
impl RefUnwindSafe for PartialDrive
impl Send for PartialDrive
impl Sync for PartialDrive
impl Unpin for PartialDrive
impl UnwindSafe for PartialDrive
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