pub struct FileDescriptorHandlerReadOnlyAsync<TId: FileIdType> { /* private fields */ }Expand description
Async read-only file-descriptor helpers.
With Linux feature io_uring, read, flush, and fsync use io_uring;
other methods use synchronous unix_fs calls. On BSD/macOS they all remain
synchronous.
Implementations§
Source§impl<TId: FileIdType> FileDescriptorHandlerReadOnlyAsync<TId>
impl<TId: FileIdType> FileDescriptorHandlerReadOnlyAsync<TId>
Source§impl<TId: FileIdType> FileDescriptorHandlerReadOnlyAsync<TId>
impl<TId: FileIdType> FileDescriptorHandlerReadOnlyAsync<TId>
pub async fn flush<'a>( &self, _req: &RequestInfo, _file_id: TId, file_handle: Option<&mut OwnedFd>, _lock_owner: u64, ) -> FuseResult<()>
pub async fn fsync<'a>( &self, _req: &RequestInfo, _file_id: TId, file_handle: Option<&mut OwnedFd>, datasync: bool, ) -> FuseResult<()>
pub async fn lseek<'a>( &self, _req: &RequestInfo, _file_id: TId, file_handle: Option<&mut OwnedFd>, seek: SeekFrom, ) -> FuseResult<i64>
pub async fn read<'a>( &self, _req: &RequestInfo, _file_id: TId, file_handle: Option<&mut OwnedFd>, seek: SeekFrom, size: u32, _flags: OpenFlags, _lock_owner: Option<u64>, ) -> FuseResult<Vec<u8>>
pub async fn release( &self, _req: &RequestInfo, _file_id: TId, file_handle: Option<OwnedFd>, _flags: OpenFlags, _lock_owner: Option<u64>, _flush: bool, ) -> FuseResult<()>
pub async fn getlk<'a>( &self, _req: &RequestInfo, _file_id: TId, file_handle: Option<&mut OwnedFd>, lock_owner: u64, lock_info: LockInfo, ) -> FuseResult<LockInfo>
pub async fn ioctl<'a>( &self, _req: &RequestInfo, _file_id: TId, file_handle: Option<&mut OwnedFd>, _flags: IoctlFlags, cmd: u32, in_data: Vec<u8>, out_size: u32, ) -> FuseResult<(i32, Vec<u8>)>
pub async fn setlk<'a>( &self, _req: &RequestInfo, _file_id: TId, file_handle: Option<&mut OwnedFd>, lock_owner: u64, lock_info: LockInfo, sleep: bool, ) -> FuseResult<()>
Trait Implementations§
Source§impl<TId: FileIdType> Default for FileDescriptorHandlerReadOnlyAsync<TId>
Available on crate feature async only.
impl<TId: FileIdType> Default for FileDescriptorHandlerReadOnlyAsync<TId>
Available on crate feature
async only.Auto Trait Implementations§
impl<TId> Freeze for FileDescriptorHandlerReadOnlyAsync<TId>where
PhantomData<TId>: Freeze,
impl<TId> RefUnwindSafe for FileDescriptorHandlerReadOnlyAsync<TId>where
PhantomData<TId>: RefUnwindSafe,
impl<TId> Send for FileDescriptorHandlerReadOnlyAsync<TId>where
PhantomData<TId>: Send,
impl<TId> Sync for FileDescriptorHandlerReadOnlyAsync<TId>where
PhantomData<TId>: Sync,
impl<TId> Unpin for FileDescriptorHandlerReadOnlyAsync<TId>where
PhantomData<TId>: Unpin,
impl<TId> UnsafeUnpin for FileDescriptorHandlerReadOnlyAsync<TId>where
PhantomData<TId>: UnsafeUnpin,
impl<TId> UnwindSafe for FileDescriptorHandlerReadOnlyAsync<TId>where
PhantomData<TId>: UnwindSafe,
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