pub enum AccessPattern {
Normal,
Random,
Sequential,
}
Expand description
Values supported by ByteView::hint
.
This is largely an abstraction over madvise(2)
and fadvise(2)
.
Variants§
Normal
No special treatment.
The operating system is in full control of the buffer, a generally good default.
This is the default.
Random
Expect access to be random.
Read ahead might be less useful than normally.
Sequential
Expect access to be in sequential order, read ahead might be very useful. After reading data there is a high chance it will not be accessed again and can be aggressively freed.
Trait Implementations§
Source§impl Clone for AccessPattern
impl Clone for AccessPattern
Source§fn clone(&self) -> AccessPattern
fn clone(&self) -> AccessPattern
Returns a copy 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 AccessPattern
impl Debug for AccessPattern
Source§impl Default for AccessPattern
impl Default for AccessPattern
Source§fn default() -> AccessPattern
fn default() -> AccessPattern
Returns the “default value” for a type. Read more
impl Copy for AccessPattern
Auto Trait Implementations§
impl Freeze for AccessPattern
impl RefUnwindSafe for AccessPattern
impl Send for AccessPattern
impl Sync for AccessPattern
impl Unpin for AccessPattern
impl UnwindSafe for AccessPattern
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