pub struct ContainerSpec { /* private fields */ }Expand description
A validated image and build pair for one approved container.
Implementations§
Source§impl ContainerSpec
impl ContainerSpec
Sourcepub async fn approved(image: &str, build_dir: &Path) -> Result<Self>
pub async fn approved(image: &str, build_dir: &Path) -> Result<Self>
Approve an image and build directory for container launch.
The image must carry an explicit tag or digest other than latest.
The build directory must exist, resolve to a real directory, and be
representable in a --mount spec.
§Errors
Returns an error for an unpinned image, a missing or non-directory build path, or a path that cannot appear in a mount spec.
Auto Trait Implementations§
impl Forget for ContainerSpec
impl Freeze for ContainerSpec
impl Move for ContainerSpec
impl RefUnwindSafe for ContainerSpec
impl Send for ContainerSpecwhere
RawVecInner: Send,
impl Sync for ContainerSpecwhere
RawVecInner: Sync,
impl Unpin for ContainerSpec
impl UnsafeUnpin for ContainerSpec
impl UnwindSafe for ContainerSpecwhere
RawVecInner: UnwindSafe,
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