pub struct WebGLRSSync<'ctx> { /* private fields */ }
Implementations§
Source§impl<'ctx> WebGLRSSync<'ctx>
impl<'ctx> WebGLRSSync<'ctx>
Sourcepub fn client_wait(&self, flags: u32, timeout: i64) -> WaitStatus
pub fn client_wait(&self, flags: u32, timeout: i64) -> WaitStatus
Blocks and waits for this WebGLRSSync
object to become signaled or a given timeout to be passed.
§Arguments
flags
- specifying a bitwise combination of flags controlling the flushing behavior. May be gl.SYNC_FLUSH_COMMANDS_BIT.timeout
- specifying a timeout (in nanoseconds) for which to wait for the sync object to become signaled. Must not be larger than gl.MAX_CLIENT_WAIT_TIMEOUT_WEBGL.
Sourcepub fn wait(&self, flags: u32, timeout: i64)
pub fn wait(&self, flags: u32, timeout: i64)
Returns immediately, but waits on the GL server until the WebGLRSSync
object is signaled.
The method is a no-op in the absence of the possibility of synchronizing between multiple GL contexts.
§Arguments
flags
- specifying a bitwise combination of flags controlling the flushing behavior. May be gl.SYNC_FLUSH_COMMANDS_BIT.timeout
- specifying a timeout (in nanoseconds) for which to wait for the sync object to become signaled. Must not be larger than gl.MAX_CLIENT_WAIT_TIMEOUT_WEBGL.
Sourcepub fn status(&self) -> SyncStatus
pub fn status(&self) -> SyncStatus
Returns the status of this WebGLRSSync
object.
Trait Implementations§
Source§impl<'ctx> Clone for WebGLRSSync<'ctx>
impl<'ctx> Clone for WebGLRSSync<'ctx>
Source§fn clone(&self) -> WebGLRSSync<'ctx>
fn clone(&self) -> WebGLRSSync<'ctx>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'ctx> Freeze for WebGLRSSync<'ctx>
impl<'ctx> RefUnwindSafe for WebGLRSSync<'ctx>
impl<'ctx> !Send for WebGLRSSync<'ctx>
impl<'ctx> !Sync for WebGLRSSync<'ctx>
impl<'ctx> Unpin for WebGLRSSync<'ctx>
impl<'ctx> UnwindSafe for WebGLRSSync<'ctx>
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