#[repr(C)]pub struct SegmentDeleteHeader {Show 17 fields
pub checksum: u128,
pub checksum_body: u128,
pub cluster: u128,
pub size: u32,
pub view: u32,
pub release: u32,
pub command: Command,
pub replica: u8,
pub reserved_frame: [u8; 66],
pub nonce: u128,
pub namespace: u64,
pub created_revision: u64,
pub minimum_metadata_op: u64,
pub up_to_offset: u64,
pub segments_count: u32,
pub kind: SegmentDeleteKind,
pub reserved: [u8; 75],
}Expand description
Resolve a segment count on the partition primary before metadata commits the resulting truncation.
Replies echo the nonce and history fields; ingress authenticates the replica and the requester correlates the reply.
Fields§
§checksum: u128§checksum_body: u128§cluster: u128§size: u32§view: u32§release: u32§command: Command§replica: u8§reserved_frame: [u8; 66]§nonce: u128§namespace: u64§created_revision: u64§minimum_metadata_op: u64§up_to_offset: u64§segments_count: u32§kind: SegmentDeleteKind§reserved: [u8; 75]Trait Implementations§
Source§impl CheckedBitPattern for SegmentDeleteHeader
impl CheckedBitPattern for SegmentDeleteHeader
Source§type Bits = SegmentDeleteHeaderBits
type Bits = SegmentDeleteHeaderBits
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(bits: &SegmentDeleteHeaderBits) -> bool
fn is_valid_bit_pattern(bits: &SegmentDeleteHeaderBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl Clone for SegmentDeleteHeader
impl Clone for SegmentDeleteHeader
Source§impl ConsensusHeader for SegmentDeleteHeader
impl ConsensusHeader for SegmentDeleteHeader
Source§const FRAME_SEALED: bool = true
const FRAME_SEALED: bool = true
Whether this header’s
checksum field seals the frame. Read moreconst COMMAND: Command = Command::SegmentDelete
Source§fn set_checksum(&mut self, checksum: u128)
fn set_checksum(&mut self, checksum: u128)
Overwrite the
checksum field.fn operation(&self) -> Operation
fn command(&self) -> Command
fn size(&self) -> u32
Source§const IDENTITY_CHECKSUMMED: bool = false
const IDENTITY_CHECKSUMMED: bool = false
Whether
checksum carries the prepare identity, which covers the
operation byte: an unknown operation on such a frame can be
authenticated from the raw bytes even though the typed view refuses to
cast. False wherever checksum seals the frame or crosses the client
boundary.Source§const OPERATION_OFFSET: Option<usize> = None
const OPERATION_OFFSET: Option<usize> = None
Source§fn accepts(command: Command) -> bool
fn accepts(command: Command) -> bool
Whether a frame carrying
command may be typed as this header.
Defaults to an exact match; a header that serves several commands
with one layout (e.g. RepairDone / RangeEvicted) widens it.Source§fn frame_checksum(&self) -> u128
fn frame_checksum(&self) -> u128
Checksum over every byte of the header past
checksum itself. Read moreSource§fn seal(&mut self)
fn seal(&mut self)
Stamp
Self::frame_checksum. Call last when building a frame: it covers
every other field, checksum_body included, so later writes are uncovered.Source§fn verify_frame(&self) -> Result<(), ConsensusError>
fn verify_frame(&self) -> Result<(), ConsensusError>
Reject a frame whose header does not match its own checksum. Read more
impl Copy for SegmentDeleteHeader
Source§impl Debug for SegmentDeleteHeader
impl Debug for SegmentDeleteHeader
impl Eq for SegmentDeleteHeader
impl NoUninit for SegmentDeleteHeader
Source§impl PartialEq for SegmentDeleteHeader
impl PartialEq for SegmentDeleteHeader
impl StructuralPartialEq for SegmentDeleteHeader
Auto Trait Implementations§
impl Freeze for SegmentDeleteHeader
impl RefUnwindSafe for SegmentDeleteHeader
impl Send for SegmentDeleteHeader
impl Sync for SegmentDeleteHeader
impl Unpin for SegmentDeleteHeader
impl UnsafeUnpin for SegmentDeleteHeader
impl UnwindSafe for SegmentDeleteHeader
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