Struct webgl_rs::sync::WebGLRSSync

source ·
pub struct WebGLRSSync<'ctx> { /* private fields */ }

Implementations§

Deletes this WebGLRSSync object

Returns true if this is a valid WebGLRSSync object.

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.

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.

Returns the status of this WebGLRSSync object.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.