[−][src]Struct glium::SyncFence
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]
F: Facade,
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,