[][src]Struct processing::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

Methods

impl SyncFence[src]

pub fn new<F>(facade: &F) -> Result<SyncFence, SyncNotSupportedError> where
    F: Facade + ?Sized
[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 !Send for SyncFence

impl !Sync for SyncFence

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T[src]