pub enum FileHandleState<Client>{
Read {
request: PrefetchGetObject<Client>,
flushed: bool,
},
Write {
state: UploadState<Client>,
flushed: bool,
},
}Variants§
Read
The file handle has been assigned as a read handle
Fields
§
request: PrefetchGetObject<Client>Write
The file handle has been assigned as a write handle
Implementations§
Source§impl<Client> FileHandleState<Client>
impl<Client> FileHandleState<Client>
pub async fn new( fh: u64, handle: &NewHandle, flags: OpenFlags, fs: &S3Filesystem<Client>, ) -> Result<FileHandleState<Client>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<Client> Freeze for FileHandleState<Client>
impl<Client> !RefUnwindSafe for FileHandleState<Client>
impl<Client> Send for FileHandleState<Client>
impl<Client> !Sync for FileHandleState<Client>
impl<Client> !Unpin for FileHandleState<Client>
impl<Client> !UnsafeUnpin for FileHandleState<Client>
impl<Client> !UnwindSafe for FileHandleState<Client>
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