[][src]Enum cbs::message::Action

pub enum Action {
    Clear(Selection),
    Get(Selection),
    Set {
        content: String,
        select: Selection,
    },
}

Represents variant types of content action

Variants

Clear(Selection)Get(Selection)Set

Fields of Set

content: Stringselect: Selection

Methods

impl Action[src]

pub fn get() -> Self[src]

pub fn set<S: Into<String>>(content: S) -> Self[src]

pub fn clear() -> Self[src]

pub fn select(self, selection: Selection) -> Self[src]

impl Action[src]

pub fn send_request(self) -> impl Future<Item = Response, Error = Error>[src]

Trait Implementations

impl Debug for Action[src]

impl TryFrom<BytesMut> for Action[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryInto<BytesMut> for Action[src]

type Error = Error

The type returned in the event of a conversion error.

impl Serialize for Action[src]

impl<'de> Deserialize<'de> for Action[src]

Auto Trait Implementations

impl Send for Action

impl Unpin for Action

impl Sync for Action

impl UnwindSafe for Action

impl RefUnwindSafe for Action

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T