pub struct StreamSink<'a, T: RWSeekable + ?Sized + 'a> { /* private fields */ }
Expand description
A TextureSink
that writes to a RustKtxStream
.
Implementations§
Source§impl<'a, T: RWSeekable + ?Sized + 'a> StreamSink<'a, T>
impl<'a, T: RWSeekable + ?Sized + 'a> StreamSink<'a, T>
Sourcepub fn new(inner: Arc<Mutex<RustKtxStream<'a, T>>>) -> Self
pub fn new(inner: Arc<Mutex<RustKtxStream<'a, T>>>) -> Self
Creates a new stream sink that will write to the given inner
stream.
Sourcepub fn into_inner(self) -> Arc<Mutex<RustKtxStream<'a, T>>>
pub fn into_inner(self) -> Arc<Mutex<RustKtxStream<'a, T>>>
Destroys this stream sink, giving back the underlying inner
stream.
Trait Implementations§
Source§impl<'a, T: Debug + RWSeekable + ?Sized + 'a> Debug for StreamSink<'a, T>
impl<'a, T: Debug + RWSeekable + ?Sized + 'a> Debug for StreamSink<'a, T>
Source§impl<'a, T: RWSeekable + ?Sized + 'a> TextureSink for StreamSink<'a, T>
impl<'a, T: RWSeekable + ?Sized + 'a> TextureSink for StreamSink<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for StreamSink<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for StreamSink<'a, T>where
T: ?Sized,
impl<'a, T> !Send for StreamSink<'a, T>
impl<'a, T> !Sync for StreamSink<'a, T>
impl<'a, T> Unpin for StreamSink<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for StreamSink<'a, T>where
T: ?Sized,
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