#[repr(u8)]pub enum DiskWrite {
Disable = 0,
Enable = 1,
WriteThrough = 2,
}Expand description
Is the OS allowed to cache write data to files?
See https://www.libtorrent.org/reference-Settings.html#disk_io_write_mode for more information.
Variants§
Disable = 0
Don’t Allow the OS to cache write data.
Enable = 1
Allow the OS to cache write data.
WriteThrough = 2
FLushes pieces to disk as they complete validation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiskWrite
impl<'de> Deserialize<'de> for DiskWrite
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiskWrite
Source§impl Ord for DiskWrite
impl Ord for DiskWrite
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DiskWrite
impl PartialOrd for DiskWrite
impl StructuralPartialEq for DiskWrite
Auto Trait Implementations§
impl Freeze for DiskWrite
impl RefUnwindSafe for DiskWrite
impl Send for DiskWrite
impl Sync for DiskWrite
impl Unpin for DiskWrite
impl UnsafeUnpin for DiskWrite
impl UnwindSafe for DiskWrite
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