pub struct ReadOp {
pub file: FileOperand,
pub offset: VfOffset,
pub length: usize,
}Expand description
One element of a batched read, replacing the C tc_iovec (which mixed
input and output fields in a single mutable struct).
Fields§
§file: FileOperand§offset: VfOffset§length: usizeNumber of bytes to fetch.
Implementations§
Source§impl ReadOp
impl ReadOp
pub fn new(file: FileOperand, offset: VfOffset, length: usize) -> ReadOp
Sourcepub fn at(file: FileOperand, offset: u64, length: usize) -> ReadOp
pub fn at(file: FileOperand, offset: u64, length: usize) -> ReadOp
A read at an absolute offset.
pub fn from_path(path: &str, offset: VfOffset, length: usize) -> ReadOp
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadOp
impl RefUnwindSafe for ReadOp
impl Send for ReadOp
impl Sync for ReadOp
impl Unpin for ReadOp
impl UnsafeUnpin for ReadOp
impl UnwindSafe for ReadOp
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