pub struct VsockSpecPatch { /* private fields */ }Expand description
A sparse, presence-aware patch for VsockSpec.
Implementations§
Source§impl VsockSpecPatch
impl VsockSpecPatch
Sourcepub fn routes(self, value: Vec<VsockRouteSpec>) -> Self
pub fn routes(self, value: Vec<VsockRouteSpec>) -> Self
Set the routes field in this patch.
Sourcepub fn clear_routes(self) -> Self
pub fn clear_routes(self) -> Self
Remove routes from this patch so applying it leaves the target unchanged.
Sourcepub fn overlay(self, higher: Self) -> Self
pub fn overlay(self, higher: Self) -> Self
Overlay a higher-precedence patch using each field’s declared strategy.
Sourcepub fn from_present_fields(value: VsockSpec) -> Self
pub fn from_present_fields(value: VsockSpec) -> Self
Convert non-null fields into a changeset, treating Option::None as absent.
Trait Implementations§
Source§impl Clone for VsockSpecPatch
impl Clone for VsockSpecPatch
Source§fn clone(&self) -> VsockSpecPatch
fn clone(&self) -> VsockSpecPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VsockSpecPatch
impl Debug for VsockSpecPatch
Source§impl Default for VsockSpecPatch
impl Default for VsockSpecPatch
Source§fn default() -> VsockSpecPatch
fn default() -> VsockSpecPatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VsockSpecPatch
impl RefUnwindSafe for VsockSpecPatch
impl Send for VsockSpecPatch
impl Sync for VsockSpecPatch
impl Unpin for VsockSpecPatch
impl UnsafeUnpin for VsockSpecPatch
impl UnwindSafe for VsockSpecPatch
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