pub struct File<R>{ /* private fields */ }
Implementations§
Source§impl<R> File<R>
impl<R> File<R>
pub fn new(reader: R, buf_size: usize) -> Self
pub fn into_stream( self, ) -> Pin<Box<impl ?Sized + Stream<Item = Result<Frame<VecDeque<u8>>, ErrorBoxed>> + 'static>>
pub fn into_stream_sized( self, max_length: u64, ) -> Pin<Box<impl ?Sized + Stream<Item = Result<Frame<VecDeque<u8>>, ErrorBoxed>> + 'static>>
Auto Trait Implementations§
impl<R> Freeze for File<R>where
R: Freeze,
impl<R> RefUnwindSafe for File<R>where
R: RefUnwindSafe,
impl<R> Send for File<R>
impl<R> Sync for File<R>where
R: Sync,
impl<R> Unpin for File<R>
impl<R> UnwindSafe for File<R>where
R: 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