[][src]Enum gdk::GrabStatus

#[non_exhaustive]pub enum GrabStatus {
    Success,
    AlreadyGrabbed,
    InvalidTime,
    NotViewable,
    Frozen,
    Failed,
    // some variants omitted
}

Returned by Device::grab, gdk_pointer_grab and gdk_keyboard_grab to indicate success or the reason for the failure of the grab attempt.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Success

the resource was successfully grabbed.

AlreadyGrabbed

the resource is actively grabbed by another client.

InvalidTime

the resource was grabbed more recently than the specified time.

NotViewable

the grab window or the confine_to window are not viewable.

Frozen

the resource is frozen by an active grab of another client.

Failed

the grab failed for some other reason. Since 3.16

Trait Implementations

impl Clone for GrabStatus[src]

impl Copy for GrabStatus[src]

impl Debug for GrabStatus[src]

impl Display for GrabStatus[src]

impl Eq for GrabStatus[src]

impl<'a> FromValue<'a> for GrabStatus[src]

impl<'a> FromValueOptional<'a> for GrabStatus[src]

impl Hash for GrabStatus[src]

impl Ord for GrabStatus[src]

impl PartialEq<GrabStatus> for GrabStatus[src]

impl PartialOrd<GrabStatus> for GrabStatus[src]

impl SetValue for GrabStatus[src]

impl StaticType for GrabStatus[src]

impl StructuralEq for GrabStatus[src]

impl StructuralPartialEq for GrabStatus[src]

Auto Trait Implementations

impl RefUnwindSafe for GrabStatus

impl Send for GrabStatus

impl Sync for GrabStatus

impl Unpin for GrabStatus

impl UnwindSafe for GrabStatus

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

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.