[][src]Struct glium::SyncFence

pub struct SyncFence { /* fields omitted */ }

Provides a way to wait for a server-side operation to be finished.

Creating a SyncFence injects an element in the commands queue of the backend. When this element is reached, the fence becomes signaled.

Example

let fence = glium::SyncFence::new(&display).unwrap();
do_something(&display);
fence.wait();   // blocks until the previous operations have finished

Implementations

impl SyncFence[src]

pub fn new<F: ?Sized>(facade: &F) -> Result<SyncFence, SyncNotSupportedError> where
    F: Facade
[src]

Builds a new SyncFence that is injected in the server.

pub fn wait(self)[src]

Blocks until the operation has finished on the server.

Trait Implementations

impl Drop for SyncFence[src]

Auto Trait Implementations

impl !RefUnwindSafe for SyncFence

impl !Send for SyncFence

impl !Sync for SyncFence

impl Unpin for SyncFence

impl !UnwindSafe for SyncFence

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.