pub struct WorkdirSnapshotGrant {
pub capsules: Vec<String>,
pub source: WorkdirRoot,
pub excluded: Vec<(u64, u64)>,
}Expand description
A session’s capabilities.spawn.workdir_snapshot, and the work folder it copies.
Fields§
§capsules: Vec<String>The full names whose every delegation starts in a copy of Self::source.
source: WorkdirRootThe session’s accessible work folder, held.
excluded: Vec<(u64, u64)>(st_dev, st_ino) of the session’s runtime and records directories, never copied.
Implementations§
Source§impl WorkdirSnapshotGrant
impl WorkdirSnapshotGrant
Sourcepub fn new(
capsules: Vec<String>,
source: WorkdirRoot,
own_dirs: &[&WorkdirRoot],
) -> Self
pub fn new( capsules: Vec<String>, source: WorkdirRoot, own_dirs: &[&WorkdirRoot], ) -> Self
The grant of a session listing capsules, whose work folder is source and whose own
directories — runtime and records — are own_dirs. Those lie inside source only on an
advisory-capped launch, and are never copied.
Trait Implementations§
Source§impl Clone for WorkdirSnapshotGrant
impl Clone for WorkdirSnapshotGrant
Auto Trait Implementations§
impl Forget for WorkdirSnapshotGrant
impl Freeze for WorkdirSnapshotGrant
impl Move for WorkdirSnapshotGrant
impl RefUnwindSafe for WorkdirSnapshotGrant
impl Send for WorkdirSnapshotGrant
impl Sync for WorkdirSnapshotGrant
impl Unpin for WorkdirSnapshotGrant
impl UnsafeUnpin for WorkdirSnapshotGrant
impl UnwindSafe for WorkdirSnapshotGrant
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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