pub struct ShareInCeiling {
pub allow: Vec<String>,
pub max_files: usize,
pub max_bytes: u64,
}Expand description
Operator-declared ceiling on the parent files a delegated worker may be
seeded with (#2295).
#2286 fenced every worker in its own workspace subtree and re-rooted the
coding tools against it, reads included — which ended the previously
implicit contract that a worker could read the parent’s workspace. This
ceiling is the static half of restoring it: the target agent’s manifest
declares the maximum reachable set, and a __delegate_to call names
specific paths within it (see DelegateRequest::share_in). The
orchestrating model can therefore pick the file a task is about without
being able to widen what any worker of that agent can ever see.
The default is CLOSED: an empty Self::allow seeds nothing, so an agent
whose manifest says nothing about share-in keeps #2286’s behavior exactly.
Fields§
§allow: Vec<String>Glob patterns, matched against parent-workspace-relative file paths. A file is eligible only if it matches at least one pattern. Empty ⇒ nothing is eligible.
max_files: usizeMaximum number of files one delegation may seed. Zero ⇒ nothing is
eligible, matching the empty-allow closed default.
max_bytes: u64Maximum total bytes one delegation may seed, so a fan-out of workers
cannot exhaust the workspace volume’s sizeLimit. Zero ⇒ nothing is
eligible.
Implementations§
Sourcepub const fn admits_anything(&self) -> bool
pub const fn admits_anything(&self) -> bool
Whether this ceiling can admit any file at all.
Every zero/empty field independently closes the ceiling, so a partially configured manifest fails closed rather than admitting an unbounded set.
Trait Implementations§
Source§fn clone(&self) -> ShareInCeiling
fn clone(&self) -> ShareInCeiling
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn default() -> ShareInCeiling
fn default() -> ShareInCeiling
Auto Trait Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more