Struct hyper_static::streamer::Streamer
source · pub struct Streamer<R>{ /* private fields */ }
Implementations§
source§impl<R> Streamer<R>
impl<R> Streamer<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>>, Error>> + 'static>>
pub fn into_stream_sized( self, max_length: u64 ) -> Pin<Box<impl ?Sized + Stream<Item = Result<Frame<VecDeque<u8>>, Error>> + 'static>>
Auto Trait Implementations§
impl<R> RefUnwindSafe for Streamer<R>where
R: RefUnwindSafe,
impl<R> Send for Streamer<R>
impl<R> Sync for Streamer<R>where
R: Sync,
impl<R> Unpin for Streamer<R>
impl<R> UnwindSafe for Streamer<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