pub struct FileRead {
pub logical_length: u64,
pub revision: Revision,
pub range: ByteRange,
pub stream: ByteStream,
}Expand description
Metadata accompanying a streamed file read.
Fields§
§logical_length: u64The complete logical length of the file.
revision: RevisionThe revision from which the stream reads.
range: ByteRangeThe actual inclusive-start, exclusive-end range returned.
stream: ByteStreamThe requested byte chunks.
Implementations§
Source§impl FileRead
impl FileRead
Sourcepub fn into_stream(self) -> ByteStream
pub fn into_stream(self) -> ByteStream
Returns the file’s byte stream.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FileRead
impl !Sync for FileRead
impl !UnwindSafe for FileRead
impl Freeze for FileRead
impl Send for FileRead
impl Unpin for FileRead
impl UnsafeUnpin for FileRead
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