pub struct AnyContainerMemory(/* private fields */);Expand description
A type-erased ContainerMemory, what the builders store.
Implementations§
Source§impl AnyContainerMemory
impl AnyContainerMemory
Sourcepub fn new(memory: impl ContainerMemory) -> Self
pub fn new(memory: impl ContainerMemory) -> Self
Erases memory.
Trait Implementations§
Source§impl Clone for AnyContainerMemory
impl Clone for AnyContainerMemory
Source§impl ContainerMemory for AnyContainerMemory
impl ContainerMemory for AnyContainerMemory
Source§async fn cgroup(&self) -> Result<CgroupMemory, FootprintError>
async fn cgroup(&self) -> Result<CgroupMemory, FootprintError>
The container’s cgroup now.
Source§async fn job_footprints(
&self,
task_ids: &[String],
) -> Result<Vec<u64>, FootprintError>
async fn job_footprints( &self, task_ids: &[String], ) -> Result<Vec<u64>, FootprintError>
The bytes held by each job’s processes, in order, found by the
JOB_MARKER_ENV their environment carries; a job with no process
holds nothing.Auto Trait Implementations§
impl !RefUnwindSafe for AnyContainerMemory
impl !UnwindSafe for AnyContainerMemory
impl Forget for AnyContainerMemory
impl Freeze for AnyContainerMemory
impl Move for AnyContainerMemory
impl Send for AnyContainerMemory
impl Sync for AnyContainerMemory
impl Unpin for AnyContainerMemory
impl UnsafeUnpin for AnyContainerMemory
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
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<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