FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ClipboardError

    struct · ferroui-base · v0.5.0

    struct ClipboardError
    

    The failure of a clipboard operation: what a platform clipboard reports instead of a result.

    View source

    Members

    new

    fn new(kind: ClipboardErrorKind, message: impl Into<String>) -> ClipboardError
    

    Creates an error of a kind with a message.

    Source

    from_kind

    fn from_kind(kind: ClipboardErrorKind) -> ClipboardError
    

    Creates an error of a kind with the default message of the kind.

    Source

    timeout

    fn timeout(message: impl Into<String>) -> ClipboardError
    

    The clipboard could not be opened or did not answer in time.

    Source

    canceled

    fn canceled(message: impl Into<String>) -> ClipboardError
    

    The operation was canceled.

    Source

    access_denied

    fn access_denied(message: impl Into<String>) -> ClipboardError
    

    The platform denied access to the clipboard.

    Source

    platform

    fn platform(code: i32, message: impl Into<String>) -> ClipboardError
    

    A call of the platform clipboard interface failed with the result code code.

    Source

    other

    fn other(message: impl Into<String>) -> ClipboardError
    

    A failure a platform clipboard is not expected to report.

    Source

    kind

    fn kind(self: &Self) -> ClipboardErrorKind
    

    The category of the failure.

    Source

    message

    fn message(self: &Self) -> &str
    

    The message describing the failure.

    Source

    code

    fn code(self: &Self) -> Option<i32>
    

    The result code of the platform call that failed, for ClipboardErrorKind::Platform errors.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • From<ClipboardErrorKind>
    • Display
    • Error

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.