Struct kas_wgpu::ToolkitProxy
source · [−]pub struct ToolkitProxy { /* private fields */ }
Expand description
A proxy allowing control of a Toolkit
from another thread.
Created by Toolkit::create_proxy
.
Implementations
sourceimpl ToolkitProxy
impl ToolkitProxy
sourcepub fn close_all(&self) -> Result<(), ClosedError>
pub fn close_all(&self) -> Result<(), ClosedError>
Close all windows and terminate the UI.
sourcepub fn update_all(&self, id: UpdateId, payload: u64) -> Result<(), ClosedError>
pub fn update_all(&self, id: UpdateId, payload: u64) -> Result<(), ClosedError>
Trigger an update
Auto Trait Implementations
impl !RefUnwindSafe for ToolkitProxy
impl Send for ToolkitProxy
impl !Sync for ToolkitProxy
impl Unpin for ToolkitProxy
impl !UnwindSafe for ToolkitProxy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Try approximate conversion from Self
to T
Read more
fn cast_approx(self) -> T
fn cast_approx(self) -> T
Cast approximately from Self
to T
Read more
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more