Enum layershellev::ReturnData
source · pub enum ReturnData {
WlBuffer(WlBuffer),
RequestBind,
RequestExist,
RedrawAllRequest,
RedrawIndexRequest(Id),
RequestSetCursorShape((String, WlPointer, u32)),
None,
}
Expand description
the return data Note: when event is RequestBuffer, you must return WlBuffer Note: when receive InitRequest, you can request to bind extra wayland-protocols. this time you can bind virtual-keybaord. you can take startcolorkeyboard as refrence, or the simple.rs. Also, it should can bind with text-input, but I am not fully understand about this, maybe someone famillar with it can do
When send RequestExist, it will tell the event to finish.
When send RequestSetCursorShape, you can set current pointer shape. pleace take cursor-shape as refrence.
None means nothing will happened, no request, and no return data
Variants§
WlBuffer(WlBuffer)
RequestBind
RequestExist
RedrawAllRequest
RedrawIndexRequest(Id)
RequestSetCursorShape((String, WlPointer, u32))
None
Trait Implementations§
source§impl Debug for ReturnData
impl Debug for ReturnData
source§impl PartialEq for ReturnData
impl PartialEq for ReturnData
source§fn eq(&self, other: &ReturnData) -> bool
fn eq(&self, other: &ReturnData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ReturnData
impl StructuralPartialEq for ReturnData
Auto Trait Implementations§
impl Freeze for ReturnData
impl !RefUnwindSafe for ReturnData
impl Send for ReturnData
impl Sync for ReturnData
impl Unpin for ReturnData
impl !UnwindSafe for ReturnData
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> 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.