pub struct NonClosingDataProducer { /* private fields */ }
Expand description
Same as DataProducer
, but will not be closed when dropped.
Use NonClosingDataProducer::into_inner()
method to get regular DataProducer
instead and
restore regular behavior of Drop
implementation.
Implementations§
Source§impl NonClosingDataProducer
impl NonClosingDataProducer
Sourcepub fn into_inner(self) -> DataProducer
pub fn into_inner(self) -> DataProducer
Get inner DataProducer
(which will close on drop in contrast to
NonClosingDataProducer
).
Trait Implementations§
Source§impl Debug for NonClosingDataProducer
impl Debug for NonClosingDataProducer
Auto Trait Implementations§
impl Freeze for NonClosingDataProducer
impl !RefUnwindSafe for NonClosingDataProducer
impl Send for NonClosingDataProducer
impl !Sync for NonClosingDataProducer
impl Unpin for NonClosingDataProducer
impl !UnwindSafe for NonClosingDataProducer
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