moonbit-community/rabbita/cmd does not have a README file
#internal(experimental, "This API is unstable and may change in the future.")
pub(open) trait Context {
#internal(experimental, "This API is unstable and may change in the future.")
fn get_origin(Self) -> String
#internal(experimental, "This API is unstable and may change in the future.")
fn inject_url_changed(Self, String) -> Cmd
#internal(experimental, "This API is unstable and may change in the future.")
fn inject_url_request(Self, String) -> Cmd
}pub(open) trait Scheduler : Context {
fn add(Self, Cmd) -> Unit = _
#internal(experimental, "This API is unstable and may change in the future.")
fn queue_command(Self, Cmd) -> Unit
#internal(experimental, "This API is unstable and may change in the future.")
fn set_url_changed_injector(Self, Injector[String]) -> Unit
#internal(experimental, "This API is unstable and may change in the future.")
fn set_url_request_injector(Self, Injector[String]) -> Unit
}#internal(experimental, "This API is unstable and may change in the future.")
pub(all) suberror HydrateExn {
Unhandled
Fallback
Skip
}#internal(experimental, "This API is unstable and may change in the future.")
pub(all) suberror Unhandledtype Cmd#internal(experimental, "This API is unstable and may change in the future.")
pub(all) extenum Extension {
}#internal(experimental, "This API is unstable and may change in the future.")
pub(all) struct Injector[Arg]((Arg) -> Cmd)#internal(experimental, "This API is unstable and may change in the future.")
type Op#internal(experimental, "This API is unstable and may change in the future.")
pub(all) enum OpCont[T] {
None
Ready(T)
Async(async () -> T)
AfterLayout(() -> T)
LegacyEffect(EffectKind, (&Scheduler) -> Unit)
}#internal(experimental, "This API is unstable and may change in the future.")
type Runner#alias(raw_effect, deprecated="`raw_effect` is deprecated, use `custom_cmd` instead")
fn custom_cmd(callback : (&Scheduler) -> Unit, kind? : EffectKind) -> Cmdextern "js" fn set_timeout(f : () -> Unit, ms : Int) = "(f,ms) => setTimeout(f, ms)"
pub fn delay(cmd : Cmd, ms : Int) -> Cmd {
raw_effect(scheduler => set_timeout(() => scheduler.add(cmd), ms))
}functional Web UI framework for MoonBit
Dependencies