[−][src]Enum kas::event::Response
Response type from Handler::handle
.
This type wraps Handler::Msg
allowing both custom messages and toolkit
messages.
Variants
No action
Unhandled(Event)
Unhandled input events get returned back up the widget tree
Focus(Rect)
(Keyboard) focus has changed. This region should be made visible.
Custom message type
Implementations
impl<M> Response<M>
[src]
pub fn is_none(&self) -> bool
[src]
True if variant is None
pub fn is_unhandled(&self) -> bool
[src]
True if variant is Unhandled
pub fn is_msg(&self) -> bool
[src]
True if variant is Msg
pub fn from<N>(r: Response<N>) -> Self where
M: From<N>,
[src]
M: From<N>,
Map from one Response
type to another
Once Rust supports specialisation, this will likely be replaced with a
From
implementation.
pub fn into<N>(self) -> Response<N> where
N: From<M>,
[src]
N: From<M>,
Map one Response
type into another
Once Rust supports specialisation, this will likely be redundant.
pub fn try_from<N>(r: Response<N>) -> Result<Self, N>
[src]
Try mapping from one Response
type to another, failing on Msg
variant and returning the payload.
pub fn try_into<N>(self) -> Result<Response<N>, M>
[src]
Try mapping one Response
type into another, failing on Msg
variant and returning the payload.
impl Response<VoidMsg>
[src]
Trait Implementations
impl<M: Clone> Clone for Response<M>
[src]
impl<M: Debug> Debug for Response<M>
[src]
impl<M> From<M> for Response<M>
[src]
impl<M> From<Option<M>> for Response<M>
[src]
Auto Trait Implementations
impl<M> RefUnwindSafe for Response<M> where
M: RefUnwindSafe,
M: RefUnwindSafe,
impl<M> Send for Response<M> where
M: Send,
M: Send,
impl<M> Sync for Response<M> where
M: Sync,
M: Sync,
impl<M> Unpin for Response<M> where
M: Unpin,
M: Unpin,
impl<M> UnwindSafe for Response<M> where
M: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,