pub enum BuildConstraints {
System(String),
MinMemory(u64),
AvailableReadOnlyPath(PathBuf),
NetworkAccess,
ProvideBinSh,
}
Expand description
BuildConstraints represents certain conditions that must be fulfilled inside the build environment to be able to build this. Constraints can be things like required architecture and minimum amount of memory. The required input paths are not represented in here, because it wouldn’t be hermetic enough - see the comment around inputs too.
Variants§
System(String)
The system that’s needed to execute the build. Must not be empty.
MinMemory(u64)
The amount of memory required to be available for the build, in bytes.
AvailableReadOnlyPath(PathBuf)
An absolute path that need to be available in the build
environment, like /dev/kvm
.
This is distinct from the castore nodes in inputs.
These MUST be clean absolute paths, without any “.”, “..”, or superfluous
slashes, and sorted.
NetworkAccess
Whether the build should be able to access the network.
ProvideBinSh
Whether to provide a /bin/sh inside the build environment, usually a static bash.
Trait Implementations§
source§impl Clone for BuildConstraints
impl Clone for BuildConstraints
source§fn clone(&self) -> BuildConstraints
fn clone(&self) -> BuildConstraints
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BuildConstraints
impl Debug for BuildConstraints
source§impl Hash for BuildConstraints
impl Hash for BuildConstraints
source§impl PartialEq for BuildConstraints
impl PartialEq for BuildConstraints
impl Eq for BuildConstraints
impl StructuralPartialEq for BuildConstraints
Auto Trait Implementations§
impl Freeze for BuildConstraints
impl RefUnwindSafe for BuildConstraints
impl Send for BuildConstraints
impl Sync for BuildConstraints
impl Unpin for BuildConstraints
impl UnwindSafe for BuildConstraints
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request