FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DefaultModeDetector

    struct · ferroui-splat · v0.5.0

    struct DefaultModeDetector
    

    The detector of a unit test runner that ModeDetector starts with (DefaultModeDetector).

    In order, the first signal wins:

    • the variable DOTNET_RUNNING_IN_TEST set to 1, yes or true;
    • a variable of the environment that a test runner sets (XUNIT_TEST, NUNIT_TEST, or a name starting with VSTEST_, NUNIT_ or XUNIT_);
    • the name of the executable of a known test host.

    View source

    Members

    new

    fn new() -> Self
    

    The detector.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • Default
    • IEnableLogger
    • IModeDetector

    Availability

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