pub struct RetiringRenderSession(/* private fields */);Expand description
What a release of RenderSessionHandle leaves while native retires the
handle. Its functions stay callable until the handle retires, and
fail with Status::InvalidState afterwards. It owns nothing, so
dropping it changes nothing.
Implementations§
Source§impl RetiringRenderSession
impl RetiringRenderSession
Sourcepub fn service_driver_work(&self) -> Result<()>
pub fn service_driver_work(&self) -> Result<()>
Runs the session’s ready graphics work on your graphics thread.
Use it with RenderDriverKind::CallerGraphicsThread, and call it from
the same thread every time. Call it each time
RenderSessionAttachOptions::driver_work_wake is called, even while you
demand no frames, until a detach, release, or disposal of the session
finishes. It returns once no work is ready.
It accepts a released or disposed session until that release or disposal finishes.
See mln_render_session_service_driver_work in the
C API reference.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetiringRenderSession
impl RefUnwindSafe for RetiringRenderSession
impl Send for RetiringRenderSession
impl Sync for RetiringRenderSession
impl Unpin for RetiringRenderSession
impl UnsafeUnpin for RetiringRenderSession
impl UnwindSafe for RetiringRenderSession
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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