pub struct Fence { /* private fields */ }
Available on
gles
only.Implementations§
Source§impl Fence
impl Fence
pub fn new(options: &GlBackendOptions) -> Self
pub fn signal( &mut 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(&mut self, gl: &Context)
pub fn wait( &self, gl: &Context, wait_value: FenceValue, timeout_ns: u64, ) -> Result<bool, DeviceError>
pub fn destroy(self, gl: &Context)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Fence
impl RefUnwindSafe for Fence
impl Send for Fence
impl Sync for Fence
impl Unpin for Fence
impl UnwindSafe for Fence
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