[−][src]Struct wayland_protocols::unstable::linux_explicit_synchronization::v1::client::zwp_linux_surface_synchronization_v1::ZwpLinuxSurfaceSynchronizationV1
Methods
impl ZwpLinuxSurfaceSynchronizationV1
[src]
pub fn destroy(&self)
[src]
destroy synchronization object
Destroy this explicit synchronization object.
Any fence set by this object with set_acquire_fence since the last commit will be discarded by the server. Any fences set by this object before the last commit are not affected.
zwp_linux_buffer_release_v1 objects created by this object are not affected by this request.
This is a destructor, you cannot send requests to this object any longer once this method is called.
pub fn set_acquire_fence(&self, fd: RawFd)
[src]
set the acquire fence
Set the acquire fence that must be signaled before the compositor may sample from the buffer attached with wl_surface.attach. The fence is a dma_fence kernel object.
The acquire fence is double-buffered state, and will be applied on the next wl_surface.commit request for the associated surface. Thus, it applies only to the buffer that is attached to the surface at commit time.
If the provided fd is not a valid dma_fence fd, then an INVALID_FENCE error is raised.
If a fence has already been attached during the same commit cycle, a DUPLICATE_FENCE error is raised.
If the associated wl_surface was destroyed, a NO_SURFACE error is raised.
If at surface commit time the attached buffer does not support explicit synchronization, an UNSUPPORTED_BUFFER error is raised.
If at surface commit time there is no buffer attached, a NO_BUFFER error is raised.
pub fn get_release(&self) -> Main<ZwpLinuxBufferReleaseV1>
[src]
release fence for last-attached buffer
Create a listener for the release of the buffer attached by the client with wl_surface.attach. See zwp_linux_buffer_release_v1 documentation for more information.
The release object is double-buffered state, and will be associated with the buffer that is attached to the surface at wl_surface.commit time.
If a zwp_linux_buffer_release_v1 object has already been requested for the surface in the same commit cycle, a DUPLICATE_RELEASE error is raised.
If the associated wl_surface was destroyed, a NO_SURFACE error is raised.
If at surface commit time there is no buffer attached, a NO_BUFFER error is raised.
Trait Implementations
impl From<Proxy<ZwpLinuxSurfaceSynchronizationV1>> for ZwpLinuxSurfaceSynchronizationV1
[src]
impl From<ZwpLinuxSurfaceSynchronizationV1> for Proxy<ZwpLinuxSurfaceSynchronizationV1>
[src]
fn from(value: ZwpLinuxSurfaceSynchronizationV1) -> Self
[src]
impl Clone for ZwpLinuxSurfaceSynchronizationV1
[src]
fn clone(&self) -> ZwpLinuxSurfaceSynchronizationV1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl AsRef<Proxy<ZwpLinuxSurfaceSynchronizationV1>> for ZwpLinuxSurfaceSynchronizationV1
[src]
impl Eq for ZwpLinuxSurfaceSynchronizationV1
[src]
impl PartialEq<ZwpLinuxSurfaceSynchronizationV1> for ZwpLinuxSurfaceSynchronizationV1
[src]
fn eq(&self, other: &ZwpLinuxSurfaceSynchronizationV1) -> bool
[src]
fn ne(&self, other: &ZwpLinuxSurfaceSynchronizationV1) -> bool
[src]
impl Interface for ZwpLinuxSurfaceSynchronizationV1
[src]
Auto Trait Implementations
impl Send for ZwpLinuxSurfaceSynchronizationV1
impl Sync for ZwpLinuxSurfaceSynchronizationV1
impl Unpin for ZwpLinuxSurfaceSynchronizationV1
impl !RefUnwindSafe for ZwpLinuxSurfaceSynchronizationV1
impl !UnwindSafe for ZwpLinuxSurfaceSynchronizationV1
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Downcast for T where
T: Any,
T: Any,