Re-exports§
pub use comet_macro_procs;pub use futures;pub use percy_dom;pub use serde;pub use serde_cbor;pub use web_sys;pub use wasm_bindgen;pub use crate::core::component::*;pub use crate::server::prelude::*;
Macros§
- component
- debug
- Logs a message at the debug level.
- error
- Logs a message at the error level.
- generate_
cache - generate_
migrations - generate_
proto - generate_
rpc_ proto - html
- info
- Logs a message at the info level.
- lazy_
static - log
- The standard logging macro.
- log_
enabled - Determines if a message logged at the specified level in that module will be logged.
- paste
- run
- trace
- Logs a message at the trace level.
- warn
- Logs a message at the warn level.
Structs§
- App
- Arc
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- Closure
- A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.
- Event
Attrib Fn - Box<dyn AsRef
>> is our js_sys::Closure. Stored this way to allow us to store any Closure regardless of the types of its arguments. - Event
Name - The name of the event with the
onprefix. - Into
Iter - An iterator that moves out of a vector.
- Iterable
Nodes - Used by the html! macro for all braced child nodes so that we can use any type
that implements Into
- JsError
- Convenience type for use on exported
fn() -> Result<T, JsError>functions, where you wish to throw a JavaScriptErrorobject. - JsValue
- Representation of an object owned by JS.
- Message
- Metadata
- Metadata about a log message.
- Metadata
Builder - Builder for
Metadata. - Parse
Level Error - The type returned by
from_strwhen the string doesn’t match any of the log levels. - Percy
Dom - Used for keeping a real DOM node up to date based on the current VirtualNode and a new incoming VirtualNode that represents our latest DOM state.
- Rc
- A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.
- Record
- The “payload” of a log message.
- Record
Builder - Builder for
Record. - RefCell
- A mutable memory location with dynamically checked borrow rules
- RwLock
- An asynchronous reader-writer lock.
- SetLogger
Error - The type returned by
set_loggerifset_loggerhas already been called. - Shared
- VElement
Enums§
- Attribute
Value - The value associated with an element’s attribute.
- Event
- Html
Node - Level
- An enum representing the available verbosity levels of the logger.
- Level
Filter - An enum representing the available verbosity level filters of the logger.
- Virtual
Node - When building your views you’ll typically use the
html!macro to generateVirtualNode’s.
Constants§
- STATIC_
MAX_ LEVEL - The statically resolved maximum log level.
Traits§
- Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- JsCast
- A trait for checked and unchecked casting between JS types.
- Log
- A trait encapsulating the operations required of a logger.
- Proto
Trait - Serialize
- A data structure that can be serialized into any data format supported by Serde.
- Unwrap
Throw Ext - An extension trait for
Option<T>andResult<T, E>for unwrapping theTvalue, or throwing a JS error if it is not available. - View
- A trait with common functionality for rendering front-end views.
Functions§
- document
- logger
- Returns a reference to the logger.
- max_
level - Returns the current maximum log level.
- set_
boxed_ logger - Sets the global logger to a
Box<Log>. - set_
logger - Sets the global logger to a
&'static Log. - set_
logger_ ⚠racy - A thread-unsafe version of
set_logger. - set_
max_ level - Sets the global maximum log level.
- set_
max_ ⚠level_ racy - A thread-unsafe version of
set_max_level.
Attribute Macros§
- __
wasm_ bindgen_ class_ marker - async_
trait - db
- model
- rpc
- sql
- wasm_
bindgen - A list of all the attributes can be found here: https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/index.html
- watch