#[repr(C)]pub struct flock {
pub l_type: i16,
pub l_whence: i16,
pub l_start: i64,
pub l_len: i64,
pub l_pid: i32,
}
Fields§
§l_type: i16
§l_whence: i16
§l_start: i64
§l_len: i64
§l_pid: i32
Trait Implementations§
Source§impl FlockOperations for flock
impl FlockOperations for flock
Source§fn with_l_type(self, l_type: c_short) -> Self
fn with_l_type(self, l_type: c_short) -> Self
Sets
l_type
to the given value using the builder pattern. This is mostly intended for internal use. Where
possible, it is recommended to use other methods which alter l_type
(e.g. with_locktype
).Source§fn with_locktype(self, locktype: FcntlLockType) -> Self
fn with_locktype(self, locktype: FcntlLockType) -> Self
Sets the lock type (
l_type
) to the appropriate value for the given FcntlLockType
, using the builder pattern.impl Copy for flock
Auto Trait Implementations§
impl Freeze for flock
impl RefUnwindSafe for flock
impl Send for flock
impl Sync for flock
impl Unpin for flock
impl UnwindSafe for flock
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