pub struct SurfmanFrameProducer { /* private fields */ }Implementations§
Source§impl SurfmanFrameProducer
impl SurfmanFrameProducer
pub fn new( context: Rc<SurfmanFrameContext>, initial_size: PhysicalSize<u32>, ) -> Self
pub fn context(&self) -> Rc<SurfmanFrameContext>
pub fn size(&self) -> PhysicalSize<u32>
pub fn set_size(&self, size: PhysicalSize<u32>)
Trait Implementations§
Source§impl FrameProducer for SurfmanFrameProducer
impl FrameProducer for SurfmanFrameProducer
Source§fn capabilities(&self) -> ProducerCapabilities
fn capabilities(&self) -> ProducerCapabilities
Returns what frame kinds this producer can emit.
Source§fn acquire_frame(&mut self) -> Result<NativeFrame, InteropError>
fn acquire_frame(&mut self) -> Result<NativeFrame, InteropError>
Acquire the next frame from the producer. The returned
NativeFrame
should be passed immediately to TextureImporter::import_frame.Auto Trait Implementations§
impl !Freeze for SurfmanFrameProducer
impl !RefUnwindSafe for SurfmanFrameProducer
impl !Send for SurfmanFrameProducer
impl !Sync for SurfmanFrameProducer
impl !UnwindSafe for SurfmanFrameProducer
impl Unpin for SurfmanFrameProducer
impl UnsafeUnpin for SurfmanFrameProducer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more