async_file 0.1.1

An executor-agnostic async file IO library
Documentation
pub mod async_file
pub struct async_file::Data(_)
impl async_file::Data
pub fn async_file::Data::into_boxed_slice(self) -> alloc::boxed::Box<[u8]>
impl core::cmp::Eq for async_file::Data
impl core::cmp::PartialEq for async_file::Data
pub fn async_file::Data::eq(&self, other: &Self) -> bool
impl core::convert::AsRef<[u8]> for async_file::Data
pub fn async_file::Data::as_ref(&self) -> &[u8]
impl core::convert::From<async_file::Data> for alloc::boxed::Box<[u8]>
pub fn alloc::boxed::Box<[u8]>::from(val: async_file::Data) -> Self
impl core::fmt::Debug for async_file::Data
pub fn async_file::Data::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::hash::Hash for async_file::Data
pub fn async_file::Data::hash<H: core::hash::Hasher>(&self, state: &mut H)
impl core::ops::deref::Deref for async_file::Data
pub type async_file::Data::Target = [u8]
pub fn async_file::Data::deref(&self) -> &[u8]
impl core::marker::Freeze for async_file::Data
impl core::marker::Send for async_file::Data
impl core::marker::Sync for async_file::Data
impl core::marker::Unpin for async_file::Data
impl core::panic::unwind_safe::RefUnwindSafe for async_file::Data
impl core::panic::unwind_safe::UnwindSafe for async_file::Data
impl<P, T> core::ops::deref::Receiver for async_file::Data where P: core::ops::deref::Deref<Target = T> + ?core::marker::Sized, T: ?core::marker::Sized
pub type async_file::Data::Target = T
impl<T, U> core::convert::Into<U> for async_file::Data where U: core::convert::From<T>
pub fn async_file::Data::into(self) -> U
impl<T, U> core::convert::TryFrom<U> for async_file::Data where U: core::convert::Into<T>
pub type async_file::Data::Error = core::convert::Infallible
pub fn async_file::Data::try_from(value: U) -> core::result::Result<T, <T as core::convert::TryFrom<U>>::Error>
impl<T, U> core::convert::TryInto<U> for async_file::Data where U: core::convert::TryFrom<T>
pub type async_file::Data::Error = <U as core::convert::TryFrom<T>>::Error
pub fn async_file::Data::try_into(self) -> core::result::Result<U, <U as core::convert::TryFrom<T>>::Error>
impl<T> core::any::Any for async_file::Data where T: 'static + ?core::marker::Sized
pub fn async_file::Data::type_id(&self) -> core::any::TypeId
impl<T> core::borrow::Borrow<T> for async_file::Data where T: ?core::marker::Sized
pub fn async_file::Data::borrow(&self) -> &T
impl<T> core::borrow::BorrowMut<T> for async_file::Data where T: ?core::marker::Sized
pub fn async_file::Data::borrow_mut(&mut self) -> &mut T
impl<T> core::convert::From<T> for async_file::Data
pub fn async_file::Data::from(t: T) -> T
pub struct async_file::Error(_)
impl core::error::Error for async_file::Error
pub fn async_file::Error::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
impl core::fmt::Debug for async_file::Error
pub fn async_file::Error::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for async_file::Error
pub fn async_file::Error::fmt(&self, __formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for async_file::Error
impl core::marker::Send for async_file::Error
impl core::marker::Sync for async_file::Error
impl core::marker::Unpin for async_file::Error
impl !core::panic::unwind_safe::RefUnwindSafe for async_file::Error
impl !core::panic::unwind_safe::UnwindSafe for async_file::Error
impl<T, U> core::convert::Into<U> for async_file::Error where U: core::convert::From<T>
pub fn async_file::Error::into(self) -> U
impl<T, U> core::convert::TryFrom<U> for async_file::Error where U: core::convert::Into<T>
pub type async_file::Error::Error = core::convert::Infallible
pub fn async_file::Error::try_from(value: U) -> core::result::Result<T, <T as core::convert::TryFrom<U>>::Error>
impl<T, U> core::convert::TryInto<U> for async_file::Error where U: core::convert::TryFrom<T>
pub type async_file::Error::Error = <U as core::convert::TryFrom<T>>::Error
pub fn async_file::Error::try_into(self) -> core::result::Result<U, <U as core::convert::TryFrom<T>>::Error>
impl<T> alloc::string::ToString for async_file::Error where T: core::fmt::Display + ?core::marker::Sized
pub fn async_file::Error::to_string(&self) -> alloc::string::String
impl<T> core::any::Any for async_file::Error where T: 'static + ?core::marker::Sized
pub fn async_file::Error::type_id(&self) -> core::any::TypeId
impl<T> core::borrow::Borrow<T> for async_file::Error where T: ?core::marker::Sized
pub fn async_file::Error::borrow(&self) -> &T
impl<T> core::borrow::BorrowMut<T> for async_file::Error where T: ?core::marker::Sized
pub fn async_file::Error::borrow_mut(&mut self) -> &mut T
impl<T> core::convert::From<T> for async_file::Error
pub fn async_file::Error::from(t: T) -> T
pub struct async_file::File(_)
impl async_file::File
pub async fn async_file::File::metadata(&self, priority: async_file::Priority) -> core::result::Result<async_file::Metadata, async_file::Error>
pub async fn async_file::File::open(path: impl core::convert::AsRef<std::path::Path>, priority: async_file::Priority) -> core::result::Result<Self, async_file::Error>
pub async fn async_file::File::read(&self, buf_size: usize, priority: async_file::Priority) -> core::result::Result<async_file::Data, async_file::Error>
pub async fn async_file::File::read_all(&self, priority: async_file::Priority) -> core::result::Result<async_file::Data, async_file::Error>
pub async fn async_file::File::seek(&mut self, pos: std::io::SeekFrom, priority: async_file::Priority) -> core::result::Result<u64, async_file::Error>
impl core::fmt::Debug for async_file::File
pub fn async_file::File::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for async_file::File
impl core::marker::Send for async_file::File
impl core::marker::Sync for async_file::File
impl core::marker::Unpin for async_file::File
impl core::panic::unwind_safe::RefUnwindSafe for async_file::File
impl core::panic::unwind_safe::UnwindSafe for async_file::File
impl<T, U> core::convert::Into<U> for async_file::File where U: core::convert::From<T>
pub fn async_file::File::into(self) -> U
impl<T, U> core::convert::TryFrom<U> for async_file::File where U: core::convert::Into<T>
pub type async_file::File::Error = core::convert::Infallible
pub fn async_file::File::try_from(value: U) -> core::result::Result<T, <T as core::convert::TryFrom<U>>::Error>
impl<T, U> core::convert::TryInto<U> for async_file::File where U: core::convert::TryFrom<T>
pub type async_file::File::Error = <U as core::convert::TryFrom<T>>::Error
pub fn async_file::File::try_into(self) -> core::result::Result<U, <U as core::convert::TryFrom<T>>::Error>
impl<T> core::any::Any for async_file::File where T: 'static + ?core::marker::Sized
pub fn async_file::File::type_id(&self) -> core::any::TypeId
impl<T> core::borrow::Borrow<T> for async_file::File where T: ?core::marker::Sized
pub fn async_file::File::borrow(&self) -> &T
impl<T> core::borrow::BorrowMut<T> for async_file::File where T: ?core::marker::Sized
pub fn async_file::File::borrow_mut(&mut self) -> &mut T
impl<T> core::convert::From<T> for async_file::File
pub fn async_file::File::from(t: T) -> T
pub struct async_file::Metadata(_)
impl async_file::Metadata
pub fn async_file::Metadata::is_empty(&self) -> bool
pub fn async_file::Metadata::len(&self) -> u64
impl core::clone::Clone for async_file::Metadata
pub fn async_file::Metadata::clone(&self) -> async_file::Metadata
impl core::fmt::Debug for async_file::Metadata
pub fn async_file::Metadata::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for async_file::Metadata
impl core::marker::Send for async_file::Metadata
impl core::marker::Sync for async_file::Metadata
impl core::marker::Unpin for async_file::Metadata
impl core::panic::unwind_safe::RefUnwindSafe for async_file::Metadata
impl core::panic::unwind_safe::UnwindSafe for async_file::Metadata
impl<T, U> core::convert::Into<U> for async_file::Metadata where U: core::convert::From<T>
pub fn async_file::Metadata::into(self) -> U
impl<T, U> core::convert::TryFrom<U> for async_file::Metadata where U: core::convert::Into<T>
pub type async_file::Metadata::Error = core::convert::Infallible
pub fn async_file::Metadata::try_from(value: U) -> core::result::Result<T, <T as core::convert::TryFrom<U>>::Error>
impl<T, U> core::convert::TryInto<U> for async_file::Metadata where U: core::convert::TryFrom<T>
pub type async_file::Metadata::Error = <U as core::convert::TryFrom<T>>::Error
pub fn async_file::Metadata::try_into(self) -> core::result::Result<U, <U as core::convert::TryFrom<T>>::Error>
impl<T> alloc::borrow::ToOwned for async_file::Metadata where T: core::clone::Clone
pub type async_file::Metadata::Owned = T
pub fn async_file::Metadata::clone_into(&self, target: &mut T)
pub fn async_file::Metadata::to_owned(&self) -> T
impl<T> core::any::Any for async_file::Metadata where T: 'static + ?core::marker::Sized
pub fn async_file::Metadata::type_id(&self) -> core::any::TypeId
impl<T> core::borrow::Borrow<T> for async_file::Metadata where T: ?core::marker::Sized
pub fn async_file::Metadata::borrow(&self) -> &T
impl<T> core::borrow::BorrowMut<T> for async_file::Metadata where T: ?core::marker::Sized
pub fn async_file::Metadata::borrow_mut(&mut self) -> &mut T
impl<T> core::clone::CloneToUninit for async_file::Metadata where T: core::clone::Clone
pub unsafe fn async_file::Metadata::clone_to_uninit(&self, dest: *mut u8)
impl<T> core::convert::From<T> for async_file::Metadata
pub fn async_file::Metadata::from(t: T) -> T
pub async fn async_file::exists(path: impl core::convert::AsRef<std::path::Path>, priority: async_file::Priority) -> bool
pub type async_file::Priority = priority::Priority