pub struct RenderSessionHandleDiscarding<'a>(/* private fields */);Expand description
Submits RenderSessionHandle commands without a completion. Each call returns
the same acceptance status as its completing form, and native logs a
command that later fails as a warning through the log handler.
Implementations§
Source§impl RenderSessionHandleDiscarding<'_>
impl RenderSessionHandleDiscarding<'_>
Sourcepub fn resize(&self, logical_size: LogicalSize) -> Result<()>
pub fn resize(&self, logical_size: LogicalSize) -> Result<()>
Resizes the session’s target and its map.
The session renders at the map’s scale factor. Release every acquired frame first.
See mln_render_session_resize in the
C API reference.
§Errors
Status::Unsupportedwhen the session renders into a borrowed ring. Give it new textures of the new size instead.
Auto Trait Implementations§
impl<'a> Freeze for RenderSessionHandleDiscarding<'a>
impl<'a> RefUnwindSafe for RenderSessionHandleDiscarding<'a>
impl<'a> Send for RenderSessionHandleDiscarding<'a>
impl<'a> Sync for RenderSessionHandleDiscarding<'a>
impl<'a> Unpin for RenderSessionHandleDiscarding<'a>
impl<'a> UnsafeUnpin for RenderSessionHandleDiscarding<'a>
impl<'a> UnwindSafe for RenderSessionHandleDiscarding<'a>
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