Trait ServerFunArgs

Source
trait ServerFunArgs {
    type DeTupledFun<R>;
    type First: Hash + Display + PartialEq + Eq + Clone;
    type Extra;

    // Required methods
    fn as_params(e: &Self::Extra) -> Cow<'static, str>;
    fn call<R>(
        uri: Self::First,
        extra: Self::Extra,
        f: &Self::DeTupledFun<R>,
    ) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>;
}

Required Associated Typesยง

Source

type DeTupledFun<R>

Available on crate features hydrate or ssr only.
Source

type First: Hash + Display + PartialEq + Eq + Clone

Source

type Extra

Required Methodsยง

Source

fn as_params(e: &Self::Extra) -> Cow<'static, str>

Available on crate feature csr only.
Source

fn call<R>( uri: Self::First, extra: Self::Extra, f: &Self::DeTupledFun<R>, ) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Typesยง

Sourceยง

impl ServerFunArgs for (Option<URI>, Option<String>, Option<ArchiveId>, Option<String>, Option<Language>, Option<String>, Option<String>, Option<String>, Option<String>)

Sourceยง

type DeTupledFun<R> = fn(Option<URI>, Option<String>, Option<ArchiveId>, Option<String>, Option<Language>, Option<String>, Option<String>, Option<String>, Option<String>) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.
Sourceยง

type First = URI

Sourceยง

type Extra = ()

Sourceยง

fn as_params((): &Self::Extra) -> Cow<'static, str>

Available on crate feature csr only.
Sourceยง

fn call<R>( uri: URI, _: (), f: &Self::DeTupledFun<R>, ) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.
Sourceยง

impl ServerFunArgs for (Option<URI>, Option<String>, Option<ArchiveId>, Option<String>, Option<Language>, Option<String>, Option<String>, Option<String>, Option<String>, Option<URI>)

Sourceยง

type DeTupledFun<R> = fn(Option<URI>, Option<String>, Option<ArchiveId>, Option<String>, Option<Language>, Option<String>, Option<String>, Option<String>, Option<String>, Option<URI>) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.
Sourceยง

type First = URI

Sourceยง

type Extra = Option<URI>

Sourceยง

fn as_params(_: &Self::Extra) -> Cow<'static, str>

Available on crate feature csr only.
Sourceยง

fn call<R>( uri: URI, c: Option<URI>, f: &Self::DeTupledFun<R>, ) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.
Sourceยง

impl ServerFunArgs for (Option<SymbolURI>, Option<ArchiveId>, Option<String>, Option<String>, Option<String>)

Sourceยง

type DeTupledFun<R> = fn(Option<SymbolURI>, Option<ArchiveId>, Option<String>, Option<String>, Option<String>) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.
Sourceยง

type First = SymbolURI

Sourceยง

type Extra = ()

Sourceยง

fn as_params((): &Self::Extra) -> Cow<'static, str>

Available on crate feature csr only.
Sourceยง

fn call<R>( uri: SymbolURI, _: (), f: &Self::DeTupledFun<R>, ) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.
Sourceยง

impl ServerFunArgs for (Option<SymbolURI>, Option<ArchiveId>, Option<String>, Option<String>, Option<String>, bool)

Sourceยง

type DeTupledFun<R> = fn(Option<SymbolURI>, Option<ArchiveId>, Option<String>, Option<String>, Option<String>, bool) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.
Sourceยง

type First = SymbolURI

Sourceยง

type Extra = bool

Sourceยง

fn as_params(b: &Self::Extra) -> Cow<'static, str>

Available on crate feature csr only.
Sourceยง

fn call<R>( uri: SymbolURI, b: bool, f: &Self::DeTupledFun<R>, ) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.
Sourceยง

impl ServerFunArgs for (Option<DocumentURI>, Option<String>, Option<ArchiveId>, Option<String>, Option<Language>, Option<String>)

Sourceยง

type DeTupledFun<R> = fn(Option<DocumentURI>, Option<String>, Option<ArchiveId>, Option<String>, Option<Language>, Option<String>) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.
Sourceยง

type First = DocumentURI

Sourceยง

type Extra = ()

Sourceยง

fn as_params((): &Self::Extra) -> Cow<'static, str>

Available on crate feature csr only.
Sourceยง

fn call<R>( uri: DocumentURI, _: (), f: &Self::DeTupledFun<R>, ) -> Pin<Box<dyn Future<Output = Result<R, ServerFnError<String>>> + Send>>

Available on crate features hydrate or ssr only.

Implementorsยง