pub struct WidgetResponse {
pub supported: bool,
}Expand description
A generic response for widgets with no interaction payload
(separator, spacer, image, tooltip, popup, modal, scroll_area).
Carries only whether the adapter rendered it.
Fields§
§supported: boolWhether the active adapter actually rendered this widget.
Implementations§
Source§impl WidgetResponse
impl WidgetResponse
Sourcepub fn unsupported() -> Self
pub fn unsupported() -> Self
The “not implemented by this adapter” response (supported = false).
Trait Implementations§
Source§impl Clone for WidgetResponse
impl Clone for WidgetResponse
Source§fn clone(&self) -> WidgetResponse
fn clone(&self) -> WidgetResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WidgetResponse
impl Debug for WidgetResponse
Source§impl Default for WidgetResponse
impl Default for WidgetResponse
Source§fn default() -> WidgetResponse
fn default() -> WidgetResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for WidgetResponse
impl PartialEq for WidgetResponse
Source§fn eq(&self, other: &WidgetResponse) -> bool
fn eq(&self, other: &WidgetResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WidgetResponse
impl Eq for WidgetResponse
impl StructuralPartialEq for WidgetResponse
Auto Trait Implementations§
impl Freeze for WidgetResponse
impl RefUnwindSafe for WidgetResponse
impl Send for WidgetResponse
impl Sync for WidgetResponse
impl Unpin for WidgetResponse
impl UnsafeUnpin for WidgetResponse
impl UnwindSafe for WidgetResponse
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