pub enum RequestKind {
Location,
Contact,
Poll(RequestPollKind),
}Expand description
Represents different information that a Button can request.
Variants§
Location
Requests a location from the user.
Contact
Requests a contact from the user.
Poll(RequestPollKind)
Requests a poll from the user.
Implementations§
source§impl RequestKind
impl RequestKind
sourcepub fn is_location(&self) -> bool
pub fn is_location(&self) -> bool
Returns true if self is of variant Location.
sourcepub fn is_contact(&self) -> bool
pub fn is_contact(&self) -> bool
Returns true if self is of variant Contact.
sourcepub fn expect_poll(self) -> RequestPollKindwhere
Self: Debug,
pub fn expect_poll(self) -> RequestPollKindwhere
Self: Debug,
sourcepub fn poll(self) -> Option<RequestPollKind>
pub fn poll(self) -> Option<RequestPollKind>
Returns Some if self is of variant Poll, and None otherwise.
Trait Implementations§
source§impl Clone for RequestKind
impl Clone for RequestKind
source§fn clone(&self) -> RequestKind
fn clone(&self) -> RequestKind
Returns a copy of the value. Read more
1.0.0 · 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 RequestKind
impl Debug for RequestKind
source§impl Hash for RequestKind
impl Hash for RequestKind
source§impl PartialEq<RequestKind> for RequestKind
impl PartialEq<RequestKind> for RequestKind
source§fn eq(&self, other: &RequestKind) -> bool
fn eq(&self, other: &RequestKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.