pub struct ReplyCreate { /* private fields */ }Expand description
Create reply
Implementations§
Source§impl ReplyCreate
impl ReplyCreate
Sourcepub fn created(
self,
ttl: &Duration,
attr: &FileAttr,
generation: Generation,
fh: FileHandle,
flags: FopenFlags,
)
pub fn created( self, ttl: &Duration, attr: &FileAttr, generation: Generation, fh: FileHandle, flags: FopenFlags, )
Reply to a request with a newly created file entry and its newly open file handle
§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 6th parameter of ReplyCreate::created_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 created_passthrough(
self,
ttl: &Duration,
attr: &FileAttr,
generation: Generation,
fh: FileHandle,
flags: FopenFlags,
backing_id: &BackingId,
)
pub fn created_passthrough( self, ttl: &Duration, attr: &FileAttr, generation: Generation, fh: FileHandle, flags: FopenFlags, backing_id: &BackingId, )
Reply to a request with an opened backing id. Call ReplyCreate::open_backing() to get one of
these.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplyCreate
impl RefUnwindSafe for ReplyCreate
impl Send for ReplyCreate
impl Sync for ReplyCreate
impl Unpin for ReplyCreate
impl UnwindSafe for ReplyCreate
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