pub struct ReplyOpen { /* private fields */ }Expand description
Open Reply
Implementations§
Source§impl ReplyOpen
impl ReplyOpen
Sourcepub fn opened(self, fh: FileHandle, flags: FopenFlags)
pub fn opened(self, fh: FileHandle, flags: FopenFlags)
Reply to a request with the given open result
§Panics
When attempting to use kernel passthrough.
Use opened_passthrough() instead.
Sourcepub fn open_backing(&self, fd: impl AsFd) -> Result<BackingId>
pub fn open_backing(&self, fd: impl AsFd) -> Result<BackingId>
Registers a fd for passthrough, returning a BackingId. Once you have the backing ID,
you can pass it as the 3rd parameter of ReplyOpen::opened_passthrough(). This is done in
two separate steps because it may make sense to reuse backing IDs (to avoid having to
repeatedly reopen the underlying file or potentially keep thousands of fds open).
Sourcepub fn opened_passthrough(
self,
fh: FileHandle,
flags: FopenFlags,
backing_id: &BackingId,
)
pub fn opened_passthrough( self, fh: FileHandle, flags: FopenFlags, backing_id: &BackingId, )
Reply to a request with an opened backing id. Call ReplyOpen::open_backing()
to get one of these.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplyOpen
impl RefUnwindSafe for ReplyOpen
impl Send for ReplyOpen
impl Sync for ReplyOpen
impl Unpin for ReplyOpen
impl UnwindSafe for ReplyOpen
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