pub struct Renderer { /* private fields */ }Expand description
Never made: this build has no renderer.
Implementations§
Source§impl Renderer
impl Renderer
Sourcepub fn new(_format: PixelFormat) -> Option<Renderer>
pub fn new(_format: PixelFormat) -> Option<Renderer>
None: this build has no renderer.
Sourcepub fn open(
_format: PixelFormat,
done: impl FnOnce(Option<Renderer>) + Send + 'static,
)
pub fn open( _format: PixelFormat, done: impl FnOnce(Option<Renderer>) + Send + 'static, )
Calls done(None) at once: this build has no renderer.
Sourcepub fn on_pipeline_ready(&self, f: impl Fn() + Send + Sync + 'static)
pub fn on_pipeline_ready(&self, f: impl Fn() + Send + Sync + 'static)
Does nothing: no pipeline is ever compiled (f is dropped).
Sourcepub fn wait_for_pipelines(&self, _timeout: Duration) -> bool
pub fn wait_for_pipelines(&self, _timeout: Duration) -> bool
true at once: no pipeline is ever compiled.
Sourcepub fn format(&self) -> PixelFormat
pub fn format(&self) -> PixelFormat
The format of the frames.
Auto Trait Implementations§
impl Forget for Renderer
impl Freeze for Renderer
impl Move for Renderer
impl RefUnwindSafe for Renderer
impl Send for Renderer
impl Sync for Renderer
impl Unpin for Renderer
impl UnsafeUnpin for Renderer
impl UnwindSafe for Renderer
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