pub struct BootstrapPreflight {
pub available_disk_bytes: u64,
pub reserved_disk_bytes: u64,
pub max_memory_bytes: u64,
pub ready_queue_bytes: u64,
pub max_chunk_uncompressed_bytes: u64,
}Expand description
Disk and memory budgets checked before transfer begins.
Fields§
§available_disk_bytes: u64§reserved_disk_bytes: u64§max_memory_bytes: u64§ready_queue_bytes: u64§max_chunk_uncompressed_bytes: u64Implementations§
Source§impl BootstrapPreflight
impl BootstrapPreflight
Sourcepub fn verify(self, manifest: &SnapshotManifest) -> Result<(), BootstrapError>
pub fn verify(self, manifest: &SnapshotManifest) -> Result<(), BootstrapError>
Proves the manifest and bounded pipeline fit declared resources without overflow.
§Errors
Returns a disk or memory budget failure.
Trait Implementations§
Source§impl Clone for BootstrapPreflight
impl Clone for BootstrapPreflight
Source§fn clone(&self) -> BootstrapPreflight
fn clone(&self) -> BootstrapPreflight
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BootstrapPreflight
Source§impl Debug for BootstrapPreflight
impl Debug for BootstrapPreflight
impl Eq for BootstrapPreflight
Source§impl PartialEq for BootstrapPreflight
impl PartialEq for BootstrapPreflight
impl StructuralPartialEq for BootstrapPreflight
Auto Trait Implementations§
impl Freeze for BootstrapPreflight
impl RefUnwindSafe for BootstrapPreflight
impl Send for BootstrapPreflight
impl Sync for BootstrapPreflight
impl Unpin for BootstrapPreflight
impl UnsafeUnpin for BootstrapPreflight
impl UnwindSafe for BootstrapPreflight
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