pub struct WriteReq {
pub nonce: u16,
pub path: String,
pub base: u128,
pub mode: u32,
pub flags: u8,
pub content_kind: u8,
pub content: Vec<u8>,
pub inflight: Option<Arc<InflightGuard>>,
}Expand description
A content write forwarded to the engine (docs/design/fs-write.md).
path is the escaped wire path; flags are FS_WRITE_*.
Fields§
§nonce: u16§path: String§base: u128§mode: u32§flags: u8§content_kind: u8§content: Vec<u8>§inflight: Option<Arc<InflightGuard>>Freed (nonce slot released) when this request is dropped after the
engine answers it. None in tests and embedders without accounting.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WriteReq
impl RefUnwindSafe for WriteReq
impl Send for WriteReq
impl Sync for WriteReq
impl Unpin for WriteReq
impl UnsafeUnpin for WriteReq
impl UnwindSafe for WriteReq
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