pub struct Flock {
pub start: u64,
pub length: u64,
pub pid: Option<Pid>,
pub typ: FlockType,
pub offset_type: FlockOffsetType,
}
Available on crate feature
process
only.Expand description
File lock data structure used in fcntl_getlk
.
Fields§
§start: u64
Starting offset for lock
length: u64
Number of bytes to lock
pid: Option<Pid>
PID of process blocking our lock. If set to None
, it refers to the
current process
typ: FlockType
Type of lock
offset_type: FlockOffsetType
Offset type of lock
Trait Implementations§
impl Copy for Flock
impl Eq for Flock
impl StructuralPartialEq 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