pub struct VerifiedBounds { /* private fields */ }
Expand description
Verified bounds.
This structure contains the original set of parameters – the grant, verify mode, and verified components – used
when verifying bounds in BoundsVerifier::verify
. It can then be used to feed into additional components, such as
MemoryPartitioner
, to ensure that the same parameters are used, avoiding any potential misconfiguration.
Implementations§
Source§impl VerifiedBounds
impl VerifiedBounds
Sourcepub fn total_available_bytes(&self) -> usize
pub fn total_available_bytes(&self) -> usize
Total number of bytes available for allocation.
Sourcepub fn total_minimum_required_bytes(&self) -> usize
pub fn total_minimum_required_bytes(&self) -> usize
Returns the total number of minimum required bytes for all components that were verified.
Sourcepub fn total_firm_limit_bytes(&self) -> usize
pub fn total_firm_limit_bytes(&self) -> usize
Returns the total firm limit, in bytes, for all components that were verified.
Sourcepub fn bounds(&self) -> &ComponentBounds
pub fn bounds(&self) -> &ComponentBounds
Gets a reference to the original component bounds that were verified.
Auto Trait Implementations§
impl Freeze for VerifiedBounds
impl RefUnwindSafe for VerifiedBounds
impl Send for VerifiedBounds
impl Sync for VerifiedBounds
impl Unpin for VerifiedBounds
impl UnwindSafe for VerifiedBounds
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> 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> Track for T
impl<T> Track for T
Source§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self> ⓘ
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self> ⓘ
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read more