pub struct StreamSource<'a, T: RWSeekable + ?Sized + 'a> { /* private fields */ }
Expand description
TextureSource
for reading a texture from a RustKtxStream
.
Implementations§
Source§impl<'a, T: RWSeekable + ?Sized + 'a> StreamSource<'a, T>
impl<'a, T: RWSeekable + ?Sized + 'a> StreamSource<'a, T>
Sourcepub fn new(
inner: Arc<Mutex<RustKtxStream<'a, T>>>,
texture_create_flags: TextureCreateFlags,
) -> Self
pub fn new( inner: Arc<Mutex<RustKtxStream<'a, T>>>, texture_create_flags: TextureCreateFlags, ) -> Self
Creates a new stream texture source from the given RustKtxStream
and texture creation flags.
Sourcepub fn into_inner(self) -> Arc<Mutex<RustKtxStream<'a, T>>>
pub fn into_inner(self) -> Arc<Mutex<RustKtxStream<'a, T>>>
Destroys self
, giving back the inner RustKtxStream
that was passed on construction.
Trait Implementations§
Source§impl<'a, T: Debug + RWSeekable + ?Sized + 'a> Debug for StreamSource<'a, T>
impl<'a, T: Debug + RWSeekable + ?Sized + 'a> Debug for StreamSource<'a, T>
Source§impl<'a, T: RWSeekable + ?Sized + 'a> TextureSource<'a> for StreamSource<'a, T>
impl<'a, T: RWSeekable + ?Sized + 'a> TextureSource<'a> for StreamSource<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for StreamSource<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for StreamSource<'a, T>where
T: ?Sized,
impl<'a, T> !Send for StreamSource<'a, T>
impl<'a, T> !Sync for StreamSource<'a, T>
impl<'a, T> Unpin for StreamSource<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for StreamSource<'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