AsyncGetSize

Trait AsyncGetSize 

Source
pub trait AsyncGetSize {
    // Required method
    fn poll_get_size(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Result<u64>>;
}
Expand description

Trait for getting the size of the file asynchronously.

Required Methods§

Source

fn poll_get_size( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<u64>>

Attempt to get the size of the file, on success returns the file size.

Implementations on Foreign Types§

Source§

impl<T: AsyncGetSize + Unpin> AsyncGetSize for Arc<Mutex<T>>

Source§

fn poll_get_size( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<u64, Error>>

Implementors§