pub struct PromotionPlan {
pub leaf_bytes: Vec<u8>,
pub new_root_bytes: Vec<u8>,
}Expand description
Layout for a promote-leaf-to-depth-1 operation: the new leaf block that holds the five entries (four old + the new one), and the rewritten inline root that indexes it.
Fields§
§leaf_bytes: Vec<u8>Full-block bytes for the freshly-allocated leaf node. Header at the
start, sorted leaf entries, zeros to end. If reserved_tail_csum was
true the last 4 bytes are reserved for the caller to patch with
checksum.patch_extent_tail.
new_root_bytes: Vec<u8>60 bytes of the new inline root: depth=1, entries=1, single index
entry whose logical_block = 0 and leaf_block = the physical block the
caller allocated for leaf_bytes.
Trait Implementations§
Source§impl Clone for PromotionPlan
impl Clone for PromotionPlan
Source§impl Debug for PromotionPlan
impl Debug for PromotionPlan
impl Eq for PromotionPlan
Source§impl PartialEq for PromotionPlan
impl PartialEq for PromotionPlan
impl StructuralPartialEq for PromotionPlan
Auto Trait Implementations§
impl Freeze for PromotionPlan
impl RefUnwindSafe for PromotionPlan
impl Send for PromotionPlan
impl Sync for PromotionPlan
impl Unpin for PromotionPlan
impl UnsafeUnpin for PromotionPlan
impl UnwindSafe for PromotionPlan
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