pub struct OperationRecord<'a> {
pub offset: usize,
pub bytes: &'a [u8],
pub payload_offset: usize,
pub payload: &'a [u8],
pub label: OperationLabel<'a>,
}Expand description
One operation record bounded by consecutive validated operation headers.
Fields§
§offset: usizeAbsolute offset of the fixed operation-header marker.
bytes: &'a [u8]Complete record bytes through the next operation header or section end.
payload_offset: usizeAbsolute offset of the first byte after the operation-label terminator.
payload: &'a [u8]Post-label serialized operation payload.
label: OperationLabel<'a>Label decoded from this record’s header.
Trait Implementations§
Source§impl<'a> Clone for OperationRecord<'a>
impl<'a> Clone for OperationRecord<'a>
Source§fn clone(&self) -> OperationRecord<'a>
fn clone(&self) -> OperationRecord<'a>
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<'a> Copy for OperationRecord<'a>
Source§impl<'a> Debug for OperationRecord<'a>
impl<'a> Debug for OperationRecord<'a>
impl<'a> Eq for OperationRecord<'a>
Source§impl<'a> PartialEq for OperationRecord<'a>
impl<'a> PartialEq for OperationRecord<'a>
impl<'a> StructuralPartialEq for OperationRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for OperationRecord<'a>
impl<'a> RefUnwindSafe for OperationRecord<'a>
impl<'a> Send for OperationRecord<'a>
impl<'a> Sync for OperationRecord<'a>
impl<'a> Unpin for OperationRecord<'a>
impl<'a> UnsafeUnpin for OperationRecord<'a>
impl<'a> UnwindSafe for OperationRecord<'a>
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