Skip to main content

ReadResult

Type Alias ReadResult 

Source
pub type ReadResult = Result<Option<String>, ClipboardError>;
Expand description

The result of one read: the text, None when there was no plain text, or ClipboardError::TooLong when there was more than one read may carry. Over-long text is never cut short, so an application can refuse the paste instead of pasting part.

Aliased Type§

pub enum ReadResult {
    Ok(Option<String>),
    Err(ClipboardError),
}

Variants§

§1.0.0

Ok(Option<String>)

Contains the success value

§1.0.0

Err(ClipboardError)

Contains the error value