pub struct SearchHeader {
pub transid: u64,
pub objectid: u64,
pub offset: u64,
pub item_type: u32,
pub len: u32,
}Expand description
Metadata returned for each item found by tree_search.
The header fields are in host byte order (the kernel fills them in through
the ioctl layer). The accompanying data slice passed to the callback is
the raw on-disk item payload and is in little-endian byte order.
Fields§
§transid: u64§objectid: u64§offset: u64§item_type: u32Item type (the type field of the btrfs key).
len: u32Length in bytes of the item’s data payload.
Trait Implementations§
Source§impl Clone for SearchHeader
impl Clone for SearchHeader
Source§fn clone(&self) -> SearchHeader
fn clone(&self) -> SearchHeader
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 SearchHeader
impl Debug for SearchHeader
impl Copy for SearchHeader
Auto Trait Implementations§
impl Freeze for SearchHeader
impl RefUnwindSafe for SearchHeader
impl Send for SearchHeader
impl Sync for SearchHeader
impl Unpin for SearchHeader
impl UnsafeUnpin for SearchHeader
impl UnwindSafe for SearchHeader
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