pub struct ReadCommand { /* private fields */ }Available on crate feature
IO only.Expand description
Read a chunk of the stream
Implementations§
Source§impl ReadCommand
impl ReadCommand
pub fn new(handle: StreamHandle, offset: Option<u32>, size: Option<u32>) -> Self
Sourcepub fn handle(&self) -> &StreamHandle
pub fn handle(&self) -> &StreamHandle
Handle of the stream to read.
Trait Implementations§
Source§impl Clone for ReadCommand
impl Clone for ReadCommand
Source§fn clone(&self) -> ReadCommand
fn clone(&self) -> ReadCommand
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 moreSource§impl Command for ReadCommand
impl Command for ReadCommand
Source§impl Debug for ReadCommand
impl Debug for ReadCommand
Source§impl<'de> Deserialize<'de> for ReadCommand
impl<'de> Deserialize<'de> for ReadCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReadCommand
impl RefUnwindSafe for ReadCommand
impl Send for ReadCommand
impl Sync for ReadCommand
impl Unpin for ReadCommand
impl UnwindSafe for ReadCommand
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