pub struct ProbedContainerMemory { /* private fields */ }Expand description
Reads a container’s memory by running scripts in it through its exec path.
Implementations§
Source§impl ProbedContainerMemory
impl ProbedContainerMemory
Sourcepub const fn new(probe: ContainerProbe) -> Self
pub const fn new(probe: ContainerProbe) -> Self
A reader of the container probe runs scripts in.
Trait Implementations§
Source§impl Clone for ProbedContainerMemory
impl Clone for ProbedContainerMemory
Source§impl ContainerMemory for ProbedContainerMemory
impl ContainerMemory for ProbedContainerMemory
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 ProbedContainerMemory
impl !UnwindSafe for ProbedContainerMemory
impl Forget for ProbedContainerMemory
impl Freeze for ProbedContainerMemory
impl Move for ProbedContainerMemory
impl Send for ProbedContainerMemory
impl Sync for ProbedContainerMemory
impl Unpin for ProbedContainerMemory
impl UnsafeUnpin for ProbedContainerMemory
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