pub struct WriteReq {
pub fid: u16,
pub offset: u64,
pub write_through: bool,
pub payload: Vec<u8>,
}Expand description
Parsed WRITE_ANDX request body.
Fields§
§fid: u16Open file identifier.
offset: u64Absolute file offset.
write_through: boolWrite-through requested (WriteMode bit 0).
payload: Vec<u8>Payload bytes to write.
Implementations§
Source§impl WriteReq
impl WriteReq
Sourcepub fn parse(words: &[u8], frame: &[u8]) -> Result<WriteReq, Status>
pub fn parse(words: &[u8], frame: &[u8]) -> Result<WriteReq, Status>
Parse the WRITE_ANDX request body from words + full frame.
Reads all fields by their spec-defined offsets; combines
DataLengthHigh and DataLength for the effective size, and
OffsetLow + OffsetHigh (when present) for the 64-bit offset.
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