pub trait ReadAt: Sealed {
// Required method
fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<u64>;
}
Expand description
A trait for types that can read data from a file-like object at a specific offset.
This is a low-level interface that is used by Cloud Filter to implement the
CfExecute
function’s CF_OPERATION_TYPE_RETRIEVE_DATA
operation.
You should not need to implement this trait yourself, but rather use the utility::ReadAt trait as a bound for your argument.