Struct nix::sys::sendfile::SfFlags [−][src]
pub struct SfFlags { /* fields omitted */ }
Expand description
Configuration options for sendfile
.
Implementations
impl SfFlags
[src]
impl SfFlags
[src]pub const SF_NODISKIO: SfFlags
[src]
pub const SF_NODISKIO: SfFlags
[src]Causes sendfile
to return EBUSY instead of blocking when attempting to read a
busy page.
pub const SF_SYNC: SfFlags
[src]
pub const SF_SYNC: SfFlags
[src]Causes sendfile
to sleep until the network stack releases its reference to the
VM pages read. When sendfile
returns, the data is not guaranteed to have been
sent, but it is safe to modify the file.
pub const SF_USER_READAHEAD: SfFlags
[src]
pub const SF_USER_READAHEAD: SfFlags
[src]Causes sendfile
to cache exactly the number of pages specified in the
readahead
parameter, disabling caching heuristics.
pub const SF_NOCACHE: SfFlags
[src]
pub const SF_NOCACHE: SfFlags
[src]Causes sendfile
not to cache the data read.
pub fn from_bits(bits: c_int) -> Option<SfFlags>
[src]
pub fn from_bits(bits: c_int) -> Option<SfFlags>
[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: c_int) -> SfFlags
[src]
pub const fn from_bits_truncate(bits: c_int) -> SfFlags
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: c_int) -> SfFlags
[src]
pub const unsafe fn from_bits_unchecked(bits: c_int) -> SfFlags
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: SfFlags) -> bool
[src]
pub const fn intersects(&self, other: SfFlags) -> bool
[src]Returns true
if there are flags common to both self
and other
.
Trait Implementations
impl BitAndAssign<SfFlags> for SfFlags
[src]
impl BitAndAssign<SfFlags> for SfFlags
[src]fn bitand_assign(&mut self, other: SfFlags)
[src]
fn bitand_assign(&mut self, other: SfFlags)
[src]Disables all flags disabled in the set.
impl BitOrAssign<SfFlags> for SfFlags
[src]
impl BitOrAssign<SfFlags> for SfFlags
[src]fn bitor_assign(&mut self, other: SfFlags)
[src]
fn bitor_assign(&mut self, other: SfFlags)
[src]Adds the set of flags.
impl BitXorAssign<SfFlags> for SfFlags
[src]
impl BitXorAssign<SfFlags> for SfFlags
[src]fn bitxor_assign(&mut self, other: SfFlags)
[src]
fn bitxor_assign(&mut self, other: SfFlags)
[src]Toggles the set of flags.
impl Extend<SfFlags> for SfFlags
[src]
impl Extend<SfFlags> for SfFlags
[src]fn extend<T: IntoIterator<Item = SfFlags>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = SfFlags>>(&mut self, iterator: T)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<SfFlags> for SfFlags
[src]
impl FromIterator<SfFlags> for SfFlags
[src]impl Ord for SfFlags
[src]
impl Ord for SfFlags
[src]impl PartialOrd<SfFlags> for SfFlags
[src]
impl PartialOrd<SfFlags> for SfFlags
[src]fn partial_cmp(&self, other: &SfFlags) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &SfFlags) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl SubAssign<SfFlags> for SfFlags
[src]
impl SubAssign<SfFlags> for SfFlags
[src]fn sub_assign(&mut self, other: SfFlags)
[src]
fn sub_assign(&mut self, other: SfFlags)
[src]Disables all flags enabled in the set.
impl Copy for SfFlags
[src]
impl Eq for SfFlags
[src]
impl StructuralEq for SfFlags
[src]
impl StructuralPartialEq for SfFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for SfFlags
impl Send for SfFlags
impl Sync for SfFlags
impl Unpin for SfFlags
impl UnwindSafe for SfFlags
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more