Struct wayland_protocols::wlr::unstable::screencopy::v1::client::zwlr_screencopy_frame_v1::ZwlrScreencopyFrameV1
source · [−]pub struct ZwlrScreencopyFrameV1(_);
Implementations
sourceimpl ZwlrScreencopyFrameV1
impl ZwlrScreencopyFrameV1
sourcepub fn copy(&self, buffer: &WlBuffer)
pub fn copy(&self, buffer: &WlBuffer)
copy the frame
Copy the frame to the supplied buffer. The buffer must have a the correct size, see zwlr_screencopy_frame_v1.buffer and zwlr_screencopy_frame_v1.linux_dmabuf. The buffer needs to have a supported format.
If the frame is successfully copied, a “flags” and a “ready” events are sent. Otherwise, a “failed” event is sent.
sourcepub fn destroy(&self)
pub fn destroy(&self)
delete this object, used or not
Destroys the frame. This request can be sent at any time by the client.
This is a destructor, you cannot send requests to this object any longer once this method is called.
sourcepub fn copy_with_damage(&self, buffer: &WlBuffer)
pub fn copy_with_damage(&self, buffer: &WlBuffer)
copy the frame when it’s damaged
Same as copy, except it waits until there is damage to copy.
Only available since version 2 of the interface.
Trait Implementations
sourceimpl Clone for ZwlrScreencopyFrameV1
impl Clone for ZwlrScreencopyFrameV1
sourcefn clone(&self) -> ZwlrScreencopyFrameV1
fn clone(&self) -> ZwlrScreencopyFrameV1
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ZwlrScreencopyFrameV1
impl Debug for ZwlrScreencopyFrameV1
sourceimpl From<ZwlrScreencopyFrameV1> for Proxy<ZwlrScreencopyFrameV1>
impl From<ZwlrScreencopyFrameV1> for Proxy<ZwlrScreencopyFrameV1>
sourcefn from(value: ZwlrScreencopyFrameV1) -> Self
fn from(value: ZwlrScreencopyFrameV1) -> Self
Converts to this type from the input type.
sourceimpl Interface for ZwlrScreencopyFrameV1
impl Interface for ZwlrScreencopyFrameV1
sourcefn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
sourceimpl PartialEq<ZwlrScreencopyFrameV1> for ZwlrScreencopyFrameV1
impl PartialEq<ZwlrScreencopyFrameV1> for ZwlrScreencopyFrameV1
sourcefn eq(&self, other: &ZwlrScreencopyFrameV1) -> bool
fn eq(&self, other: &ZwlrScreencopyFrameV1) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for ZwlrScreencopyFrameV1
impl StructuralEq for ZwlrScreencopyFrameV1
impl StructuralPartialEq for ZwlrScreencopyFrameV1
Auto Trait Implementations
impl !RefUnwindSafe for ZwlrScreencopyFrameV1
impl Send for ZwlrScreencopyFrameV1
impl Sync for ZwlrScreencopyFrameV1
impl Unpin for ZwlrScreencopyFrameV1
impl !UnwindSafe for ZwlrScreencopyFrameV1
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
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. Read more
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. Read more