pub struct SegmentBorrow {
pub key_fp: u64,
pub key: Address,
pub offset: u32,
pub size: u32,
pub kind: AccessKind,
}Expand description
A single active segment borrow.
Carries both a fast u64 fingerprint and the full 32-byte account
address. The fingerprint is the hot-path comparator; the full
address resolves collisions so conflict detection is never
probabilistic.
Fields§
§key_fp: u64Fast-path prefix of the account address.
key: AddressFull account address, authoritative identity, checked whenever the fast-path fingerprint matches. Pre-audit we relied on the fingerprint alone and claimed it was “collision-free for any realistic instruction”; that was probabilistic, not a guarantee.
offset: u32Byte offset within the account data.
size: u32Byte size of the borrowed segment.
kind: AccessKindAccess kind (read or write).
Trait Implementations§
Source§impl Clone for SegmentBorrow
impl Clone for SegmentBorrow
Source§fn clone(&self) -> SegmentBorrow
fn clone(&self) -> SegmentBorrow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SegmentBorrow
impl Debug for SegmentBorrow
impl Copy for SegmentBorrow
Auto Trait Implementations§
impl Freeze for SegmentBorrow
impl RefUnwindSafe for SegmentBorrow
impl Send for SegmentBorrow
impl Sync for SegmentBorrow
impl Unpin for SegmentBorrow
impl UnsafeUnpin for SegmentBorrow
impl UnwindSafe for SegmentBorrow
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