#[non_exhaustive]pub struct AccessPick<'a> {
pub machine: Option<&'a str>,
pub network: Option<&'a str>,
pub image: Option<&'a str>,
}Expand description
Which access machine an attach adds, where, from what: as Running::attach takes them.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.machine: Option<&'a str>The on-demand machine, when the run has more than one.
network: Option<&'a str>The run’s network it joins (default: its first).
image: Option<&'a str>What it runs from (default: the run’s).
Implementations§
Source§impl<'a> AccessPick<'a>
impl<'a> AccessPick<'a>
Sourcepub fn with_machine(self, name: &'a str) -> AccessPick<'a>
pub fn with_machine(self, name: &'a str) -> AccessPick<'a>
The on-demand machine name.
Sourcepub fn with_network(self, name: &'a str) -> AccessPick<'a>
pub fn with_network(self, name: &'a str) -> AccessPick<'a>
Joins the run’s network name.
Sourcepub fn with_image(self, image: &'a str) -> AccessPick<'a>
pub fn with_image(self, image: &'a str) -> AccessPick<'a>
Runs from image (a container image, or a Vagrant box).
Trait Implementations§
Source§impl<'a> Clone for AccessPick<'a>
impl<'a> Clone for AccessPick<'a>
impl<'a> Copy for AccessPick<'a>
Source§impl<'a> Debug for AccessPick<'a>
impl<'a> Debug for AccessPick<'a>
Auto Trait Implementations§
impl<'a> Forget for AccessPick<'a>
impl<'a> Freeze for AccessPick<'a>
impl<'a> Move for AccessPick<'a>
impl<'a> RefUnwindSafe for AccessPick<'a>
impl<'a> Send for AccessPick<'a>
impl<'a> Sync for AccessPick<'a>
impl<'a> Unpin for AccessPick<'a>
impl<'a> UnsafeUnpin for AccessPick<'a>
impl<'a> UnwindSafe for AccessPick<'a>
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