pub struct ReadParams {
pub handle: StreamHandle,
pub offset: Option<i32>,
pub size: Option<u64>,
}Expand description
Read a chunk of the stream
Fields§
§handle: StreamHandleHandle of the stream to read.
offset: Option<i32>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.
size: Option<u64>Maximum number of bytes to read (left upon the agent discretion if not specified).
Trait Implementations§
Source§impl Clone for ReadParams
impl Clone for ReadParams
Source§fn clone(&self) -> ReadParams
fn clone(&self) -> ReadParams
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 Debug for ReadParams
impl Debug for ReadParams
Source§impl Default for ReadParams
impl Default for ReadParams
Source§fn default() -> ReadParams
fn default() -> ReadParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReadParams
impl<'de> Deserialize<'de> for ReadParams
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 ReadParams
impl RefUnwindSafe for ReadParams
impl Send for ReadParams
impl Sync for ReadParams
impl Unpin for ReadParams
impl UnsafeUnpin for ReadParams
impl UnwindSafe for ReadParams
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