pub struct ReadFileOptions {
pub path: String,
pub cancellation: CancellationToken,
}Expand description
Options for reading a file.
Fields§
§path: StringPath inside the sandbox.
cancellation: CancellationTokenCancels the read.
Implementations§
Trait Implementations§
Source§impl Clone for ReadFileOptions
impl Clone for ReadFileOptions
Source§fn clone(&self) -> ReadFileOptions
fn clone(&self) -> ReadFileOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReadFileOptions
impl RefUnwindSafe for ReadFileOptions
impl Send for ReadFileOptions
impl Sync for ReadFileOptions
impl Unpin for ReadFileOptions
impl UnsafeUnpin for ReadFileOptions
impl UnwindSafe for ReadFileOptions
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