pub struct SyncPoint { /* private fields */ }
Expand description
A sync point the will be signaled in finite time
Implementations§
Source§impl SyncPoint
impl SyncPoint
Sourcepub fn contains_fence(&self) -> bool
pub fn contains_fence(&self) -> bool
Returns true
if SyncPoint
contains a Fence
Sourcepub fn get<F: Fence + 'static>(&self) -> Option<&F>
pub fn get<F: Fence + 'static>(&self) -> Option<&F>
Get a reference to the underlying Fence
if any
Returns None
if the sync point does not contain a fence
or contains a different type of fence
Sourcepub fn is_reached(&self) -> bool
pub fn is_reached(&self) -> bool
Queries the state of the sync point
Will always return true
in case the sync point does not contain a fence
Sourcepub fn wait(&self) -> Result<(), Interrupted>
pub fn wait(&self) -> Result<(), Interrupted>
Blocks the current thread until the sync point is signaled
If the sync point does not contain a fence this will never block.
Sourcepub fn is_exportable(&self) -> bool
pub fn is_exportable(&self) -> bool
Returns whether this sync point can be exported as a native fence fd
Will always return false
in case the sync point does not contain a fence
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncPoint
impl !RefUnwindSafe for SyncPoint
impl Send for SyncPoint
impl Sync for SyncPoint
impl Unpin for SyncPoint
impl !UnwindSafe for SyncPoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.