pub struct ReadBuilder { /* private fields */ }Expand description
Builder for Read.
Implementations§
Source§impl ReadBuilder
impl ReadBuilder
Sourcepub fn handle<VALUE: Into<StreamHandle>>(&mut self, value: VALUE) -> &mut Self
pub fn handle<VALUE: Into<StreamHandle>>(&mut self, value: VALUE) -> &mut Self
Handle of the stream to read.
Sourcepub fn offset<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn offset<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Seek to the specified offset before reading (if not specified, proceed with offset following the last read). Some types of streams may only support sequential reads.
Trait Implementations§
Source§impl Clone for ReadBuilder
impl Clone for ReadBuilder
Source§fn clone(&self) -> ReadBuilder
fn clone(&self) -> ReadBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReadBuilder
impl RefUnwindSafe for ReadBuilder
impl Send for ReadBuilder
impl Sync for ReadBuilder
impl Unpin for ReadBuilder
impl UnsafeUnpin for ReadBuilder
impl UnwindSafe for ReadBuilder
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