Struct voodoo::Semaphore
[−]
[src]
pub struct Semaphore { /* fields omitted */ }
A semaphore.
Destruction
Dropping this Semaphore
will cause Device::destroy_semaphore
to be called,
automatically releasing any resources associated with it.
Methods
impl Semaphore
[src]
pub fn new(device: Device, flags: SemaphoreCreateFlags) -> VdResult<Semaphore>
[src]
Creates and returns a new Semaphore
.
pub fn handle(&self) -> SemaphoreHandle
[src]
Returns this object's handle.
pub fn device(&self) -> &Device
[src]
Returns a reference to the associated device.
Trait Implementations
impl Debug for Semaphore
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Semaphore
[src]
fn clone(&self) -> Semaphore
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more