pub struct FcntlLockTable { /* private fields */ }Expand description
All record locks for a Host.
Implementations§
Source§impl FcntlLockTable
impl FcntlLockTable
pub fn new() -> Self
pub fn set_lock( &mut self, file_id: FileId, requested_range: Range<usize>, requested_owner: &LockOwner, requested_access: FlockType, ) -> Result<(), LockError>
Sourcepub fn get_coalesced_conflicting_lock(
&self,
file_id: FileId,
requested_range: Range<usize>,
requested_owner: &LockOwner,
requested_access: FlockType,
) -> Option<(LockOwner, Range<usize>, FlockType)>
pub fn get_coalesced_conflicting_lock( &self, file_id: FileId, requested_range: Range<usize>, requested_owner: &LockOwner, requested_access: FlockType, ) -> Option<(LockOwner, Range<usize>, FlockType)>
Return one of the locks that would conflict with the requested lock, if
any. Intended for fcntl operations like F_GETLK.
Sourcepub fn remove_owner(&mut self, file_id: FileId, requested_owner: &LockOwner)
pub fn remove_owner(&mut self, file_id: FileId, requested_owner: &LockOwner)
Drop all of the given owner’s locks on the given file.
Trait Implementations§
Source§impl Debug for FcntlLockTable
impl Debug for FcntlLockTable
Auto Trait Implementations§
impl Freeze for FcntlLockTable
impl RefUnwindSafe for FcntlLockTable
impl Send for FcntlLockTable
impl Sync for FcntlLockTable
impl Unpin for FcntlLockTable
impl UnsafeUnpin for FcntlLockTable
impl UnwindSafe for FcntlLockTable
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
impl<T> Host for T
impl<T> Host for T
impl<T> Host for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more