Struct laminarmq_io::fs::tokio::TokioFile
source · pub struct TokioFile<K, const FLUSH_ON_APPEND: bool = false> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<K, const FLUSH_ON_APPEND: bool> AsyncAppend for TokioFile<K, FLUSH_ON_APPEND>
impl<K, const FLUSH_ON_APPEND: bool> AsyncAppend for TokioFile<K, FLUSH_ON_APPEND>
async fn append( &mut self, bytes: Bytes, ) -> Result<AppendInfo<Self::Position, Self::Size>, UnwrittenError<Self::Error>>
source§impl AsyncBufRead for TokioFile<RandomRead, true>
impl AsyncBufRead for TokioFile<RandomRead, true>
async fn read_at_buf( &mut self, position: Self::Position, buffer: BytesMut, ) -> Result<ReadBytes<BytesMut, Self::Size>, UnreadError<Self::Error>>
fn read_at_buf_sized( &mut self, position: Self::Position, size: Self::Size, buffer: BytesMut, ) -> impl Future<Output = Result<ReadBytes<BytesMut, Self::Size>, UnreadError<Self::Error>>>
source§impl AsyncBufRead for TokioFile<Seek, true>
impl AsyncBufRead for TokioFile<Seek, true>
async fn read_at_buf( &mut self, position: Self::Position, buffer: BytesMut, ) -> Result<ReadBytes<BytesMut, Self::Size>, UnreadError<Self::Error>>
fn read_at_buf_sized( &mut self, position: Self::Position, size: Self::Size, buffer: BytesMut, ) -> impl Future<Output = Result<ReadBytes<BytesMut, Self::Size>, UnreadError<Self::Error>>>
source§impl<K, const FA: bool> AsyncClose for TokioFile<K, FA>
impl<K, const FA: bool> AsyncClose for TokioFile<K, FA>
source§impl<K, const FA: bool> AsyncFlush for TokioFile<K, FA>
impl<K, const FA: bool> AsyncFlush for TokioFile<K, FA>
source§impl<K, const FA: bool> AsyncRemove for TokioFile<K, FA>
impl<K, const FA: bool> AsyncRemove for TokioFile<K, FA>
source§impl<K, const FA: bool> AsyncTruncate for TokioFile<K, FA>
impl<K, const FA: bool> AsyncTruncate for TokioFile<K, FA>
source§impl<K, const FA: bool> FallibleEntity for TokioFile<K, FA>
impl<K, const FA: bool> FallibleEntity for TokioFile<K, FA>
type Error = TokioFileError
Auto Trait Implementations§
impl<K, const FLUSH_ON_APPEND: bool = false> !Freeze for TokioFile<K, FLUSH_ON_APPEND>
impl<K, const FLUSH_ON_APPEND: bool = false> !RefUnwindSafe for TokioFile<K, FLUSH_ON_APPEND>
impl<K, const FLUSH_ON_APPEND: bool> Send for TokioFile<K, FLUSH_ON_APPEND>where
K: Send,
impl<K, const FLUSH_ON_APPEND: bool> Sync for TokioFile<K, FLUSH_ON_APPEND>where
K: Sync,
impl<K, const FLUSH_ON_APPEND: bool> Unpin for TokioFile<K, FLUSH_ON_APPEND>where
K: Unpin,
impl<K, const FLUSH_ON_APPEND: bool> UnwindSafe for TokioFile<K, FLUSH_ON_APPEND>where
K: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.