pub struct SearchFilter {
pub tree_id: u64,
pub min_objectid: u64,
pub max_objectid: u64,
pub min_type: u32,
pub max_type: u32,
pub min_offset: u64,
pub max_offset: u64,
pub min_transid: u64,
pub max_transid: u64,
pub max_items: u32,
}Expand description
Compound-key range filter for Filesystem::tree_search. Mirrors
the kernel’s btrfs_ioctl_search_key semantics: items are returned
where (min_objectid, min_type, min_offset) <= (key) <= (max_objectid, max_type, max_offset) treated as a single 17-byte compound key, AND
the leaf’s generation falls in [min_transid, max_transid].
Fields§
§tree_id: u64Tree to search (e.g. 1 for root tree, 5 for default FS tree,
or any subvolume id).
min_objectid: u64§max_objectid: u64§min_type: u32§max_type: u32§min_offset: u64§max_offset: u64§min_transid: u64§max_transid: u64§max_items: u32Maximum items to return.
Trait Implementations§
Source§impl Clone for SearchFilter
impl Clone for SearchFilter
Source§fn clone(&self) -> SearchFilter
fn clone(&self) -> SearchFilter
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 moreSource§impl Debug for SearchFilter
impl Debug for SearchFilter
impl Copy for SearchFilter
Auto Trait Implementations§
impl Freeze for SearchFilter
impl RefUnwindSafe for SearchFilter
impl Send for SearchFilter
impl Sync for SearchFilter
impl Unpin for SearchFilter
impl UnsafeUnpin for SearchFilter
impl UnwindSafe for SearchFilter
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