dioxus_lib

Module prelude

source

Re-exports§

Modules§

Macros§

  • This macro is used to generate a impl Default block for any type with the function new_maybe_sync that takes a generic T
  • This macro is used to generate impl PartialEq blocks for any Readable type that takes a generic T
  • This macro is used to generate impl Display, and impl Debug blocks for any Readable type that takes a generic T
  • This macro is used to generate impl Display, impl Debug, impl PartialEq, and impl Eq blocks for any Readable type that takes a generic T
  • The rsx! macro makes it easy for developers to write jsx-style markup in their components.
  • A helper macro for cloning multiple values at once
  • A helper macro for use_reactive that merges uses the closure syntax to elaborate the dependency array
  • This macro is used to generate impl Add, impl AddAssign, impl Sub, impl SubAssign, impl Mul, impl MulAssign, impl Div, and impl DivAssign blocks for any Writable type that takes a generic T

Structs§

  • An attribute on a DOM node, such as id="my-thing" or href="https://example.com"
  • The callback type generated by the rsx! macro when an on field is specified for components.
  • CopyValue is a wrapper around a value to make the value mutable and Copy.
  • The DragEvent interface is a DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way.
  • A handle to an effect.
  • A context with information about suspended components
  • A wrapper around some generic data that handles the event’s state
  • A form value that may either be a list of values or a single value
  • A lazy value that is created once per application and can be accessed from anywhere in that application
  • A key used to identify a signal in the global signal context
  • The context for global signals
  • A read only signal that has been mapped to a new type.
  • Memos are the result of computing a value from use_memo.
  • Pressed modifier keys.
  • An Element that has been rendered and allows reading and modifying information about it.
  • A synthetic event that wraps a web-style MouseEvent Data associated with a mouse event
  • Owner: Handles dropping generational boxes. The owner acts like a runtime lifetime guard. Any states that you create with an owner will be dropped when that owner is dropped.
  • A platform specific event.
  • Reactivity
  • A signal that can only be read from.
  • An iterator over the values of a Readable<Vec<T>>.
  • A handle to a reactive future spawned with use_resource that can be used to modify or read the result of the future.
  • A global runtime that is shared across all scopes that provides the async runtime and context API
  • A guard for a new runtime. This must be used to override the current runtime when importing components from a dynamic library that has it’s own runtime.
  • A component’s unique identifier.
  • A component’s rendered state.
  • An object that can efficiently compare a value to a set of values.
  • Signals are a Copy state management solution with automatic dependency tracking.
  • The data stored for tracking in a signal.
  • A task that has been suspended which may have an optional loading placeholder
  • Properties for the SuspenseBoundary() component.
  • A context with information about suspended components
  • A thread safe storage. This is slower than the unsync storage, but allows you to share the value between threads.
  • A task’s unique identifier.
  • A static layout of a UI tree that describes a set of dynamic and static nodes.
  • The receiving end of an unbounded mpsc channel.
  • The transmission end of an unbounded mpsc channel.
  • A unsync storage. This is the default storage type.
  • A reference to a template along with any context needed to hydrate it
  • A reference to a template along with any context needed to hydrate it
  • A virtual node system that progresses user events and diffs UI trees.
  • Data associated with a WheelEvent
  • An iterator over the values of a Writable<Vec<T>>.
  • A mutable reference to a signal’s value.

Enums§

  • An error that can occur when trying to borrow a value.
  • An error that can occur when trying to borrow a value mutably.
  • Code is the physical position of a key.
  • Key represents the meaning of a keypress.
  • The location attribute contains an indication of the logical location of the key on the device.
  • The error type for the MountedData
  • An error that can occur while rendering a component
  • The error type for the MountedData
  • The way that scrolling should be performed
  • An attribute of the TemplateNode, created at compile time
  • A statically known node in a layout.
  • A signal that represents the state of a future
  • A signal that represents the state of the resource

Traits§

Functions§

Type Aliases§

Attribute Macros§

Derive Macros§