pub struct SwitchAttachment {
pub switch: Arc<VirtualSwitch>,
pub node_name: String,
pub mac: [u8; 6],
pub ip: [u8; 4],
}Expand description
Attachment parameters passed via crate::VmConfig::switch to wire a VM onto a VirtualSwitch.
Fields§
§switch: Arc<VirtualSwitch>§node_name: String§mac: [u8; 6]§ip: [u8; 4]Trait Implementations§
Source§impl Clone for SwitchAttachment
impl Clone for SwitchAttachment
Auto Trait Implementations§
impl Forget for SwitchAttachment
impl Freeze for SwitchAttachmentwhere
*const ArcInner<VirtualSwitch> is !null: Freeze,
PhantomData<ArcInner<VirtualSwitch>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for SwitchAttachment
impl RefUnwindSafe for SwitchAttachment
impl Send for SwitchAttachment
impl Sync for SwitchAttachment
impl Unpin for SwitchAttachment
impl UnsafeUnpin for SwitchAttachmentwhere
*const ArcInner<VirtualSwitch> is !null: UnsafeUnpin,
PhantomData<ArcInner<VirtualSwitch>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for SwitchAttachment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more