pub struct BuildContextPolicy { /* private fields */ }Expand description
Explicit roots and traversal ceilings for Docker build contexts.
Implementations§
Source§impl BuildContextPolicy
impl BuildContextPolicy
Sourcepub fn new<I, P>(roots: I) -> InfraResult<Self>
pub fn new<I, P>(roots: I) -> InfraResult<Self>
Creates a build policy from absolute admitted roots.
Sourcepub fn with_limits(self, max_files: u32, max_bytes: u64) -> InfraResult<Self>
pub fn with_limits(self, max_files: u32, max_bytes: u64) -> InfraResult<Self>
Sets bounded context file and byte ceilings.
Trait Implementations§
Source§impl Clone for BuildContextPolicy
impl Clone for BuildContextPolicy
Source§fn clone(&self) -> BuildContextPolicy
fn clone(&self) -> BuildContextPolicy
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 moreAuto Trait Implementations§
impl Freeze for BuildContextPolicy
impl RefUnwindSafe for BuildContextPolicy
impl Send for BuildContextPolicy
impl Sync for BuildContextPolicy
impl Unpin for BuildContextPolicy
impl UnsafeUnpin for BuildContextPolicy
impl UnwindSafe for BuildContextPolicy
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