FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AutomationError

    enum · ferroui-controls · v0.5.0

    enum AutomationError
    

    The error of a provider member that the state of its element refuses: the exceptions the members of the provider contracts throw in the original, as values (#567).

    The platform bridges turn it into the result of the platform: the UI Automation bridge of Windows into the result code the original's runtime returns for the exception (UIA_E_ELEMENTNOTENABLED, UIA_E_INVALIDOPERATION, COR_E_ARGUMENTOUTOFRANGE, COR_E_NOTSUPPORTED).

    View source

    Members

    ElementNotEnabled

    ElementNotEnabled(super::ElementNotEnabledError)
    

    The element is not enabled (ElementNotEnabledException).

    Source

    InvalidOperation

    InvalidOperation(String)
    

    The state of the element does not allow the operation (InvalidOperationException); the message.

    Source

    ArgumentOutOfRange

    ArgumentOutOfRange(String)
    

    An argument is out of the range of its valid values (ArgumentOutOfRangeException); the name of the parameter.

    Source

    NotSupported

    NotSupported(String)
    

    The element does not support the operation (NotSupportedException); the message.

    Source

    element_not_enabled

    fn element_not_enabled() -> Self
    

    The error of an element that is not enabled, with the default message.

    Source

    invalid_operation

    fn invalid_operation() -> Self
    

    An operation the state of the element does not allow, with the default message of the original.

    Source

    invalid_operation_with

    fn invalid_operation_with(message: impl Into<String>) -> Self
    

    An operation the state of the element does not allow, with a message.

    Source

    argument_out_of_range

    fn argument_out_of_range(param_name: impl Into<String>) -> Self
    

    An argument out of the range of its valid values; param_name is the name of the parameter.

    Source

    not_supported

    fn not_supported() -> Self
    

    An operation the element does not support, with the default message of the original.

    Source

    Trait implementations

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

    Availability

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