pub struct Fence { /* private fields */ }Available on
gles only.Implementations§
Source§impl Fence
impl Fence
pub fn new(options: &GlBackendOptions) -> Self
pub fn signal(&self, gl: &Context, value: FenceValue) -> Result<(), DeviceError>
pub fn satisfied(&self, value: FenceValue) -> bool
pub fn get_latest(&self, gl: &Context) -> FenceValue
pub fn maintain(&self, gl: &Context)
pub fn wait( &self, gl: &Context, wait_value: FenceValue, timeout_ns: u32, ) -> Result<bool, DeviceError>
pub fn destroy(self, gl: &Context)
Trait Implementations§
impl DynFence for Fence
Source§impl DynResource for Fence
impl DynResource for Fence
impl Send for Fence
Available on
send_sync only.impl Sync for Fence
Available on
send_sync only.Auto Trait Implementations§
impl !Freeze for Fence
impl !RefUnwindSafe for Fence
impl Forget for Fence
impl Move for Fence
impl Unpin for Fence
impl UnsafeUnpin for Fencewhere
Align8<u64>: UnsafeUnpin,
Align8<usize>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<GLFence>: UnsafeUnpin,
impl UnwindSafe for Fencewhere
Align8<u64>: UnwindSafe,
Align8<usize>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<NativeFence>: UnwindSafe,
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