pub trait Fence: Sized {
// Required method
fn wait(self) -> Result<(), ServerError>;
// Provided method
fn sync(self) { ... }
}Expand description
A synchronization primitive that blocks until the device has finished processing all commands submitted before the fence was created.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<A: EventApi> Fence for EventFence<A>
Available on
multi_threading only.The drop queue is where a fence pays off — a freed host buffer waits on one
rather than on the server — and it is multi_threading-only, so the impl is
too. Everything above it is the same fence either way.