pub struct Question {
pub root: PathBuf,
pub room: Result<Headroom, String>,
pub floor_spec: String,
pub requested_bytes: u64,
pub held_bytes: u64,
pub namespace: String,
pub growth: GrowthFacts,
pub machine: MachineFacts,
}Expand description
Everything answer decides from. Built by
crate::control_plane::CoreControlPlane out of the disk gate and the
namespace’s meter; built by hand in the tests, which is the point.
Fields§
§root: PathBufThe store root the numbers are of.
room: Result<Headroom, String>The one statvfs, or the OS’s reason it failed. Err is
CapacityVerdict::CapacityUnmeasured — never a yes.
floor_spec: String--disk-floor as configured, for the reason line.
requested_bytes: u64The cap being contemplated.
held_bytes: u64What the namespace already holds (Usage.Read’s pack_bytes).
namespace: StringWhose cap is rising; empty asks about bytes that are not here yet.
growth: GrowthFacts§machine: MachineFactsThe box, for the product-scope fields. Independent of the question: the same cores and RAM are reported whatever cap was asked about.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Question
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnsafeUnpin for Question
impl UnwindSafe for Question
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request