Struct leptos_server::LeptosServerFnRegistry
source · pub struct LeptosServerFnRegistry;Expand description
The registry of all Leptos server functions.
Trait Implementations§
source§impl ServerFunctionRegistry<()> for LeptosServerFnRegistry
impl ServerFunctionRegistry<()> for LeptosServerFnRegistry
source§fn register_explicit(
prefix: &'static str,
url: &'static str,
server_function: SerializedFnTraitObj<()>,
encoding: Encoding
) -> Result<(), Self::Error>
fn register_explicit( prefix: &'static str, url: &'static str, server_function: SerializedFnTraitObj<()>, encoding: Encoding ) -> Result<(), Self::Error>
Server functions are automatically registered on most platforms, (including Linux, macOS,
iOS, FreeBSD, Android, and Windows). If you are on another platform, like a WASM server runtime,
you should register server functions by calling this T::register_explicit().
source§fn get(url: &str) -> Option<ServerFnTraitObj<()>>
fn get(url: &str) -> Option<ServerFnTraitObj<()>>
Returns the server function registered at the given URL, or None if no function is registered at that URL.
source§fn get_trait_obj(url: &str) -> Option<ServerFnTraitObj<()>>
fn get_trait_obj(url: &str) -> Option<ServerFnTraitObj<()>>
Returns the server function trait obj registered at the given URL, or None if no function is registered at that URL.
source§fn paths_registered() -> Vec<&'static str>
fn paths_registered() -> Vec<&'static str>
Returns a list of all registered server functions.
§type Error = ServerRegistrationFnError
type Error = ServerRegistrationFnError
An error that can occur when registering a server function.
Auto Trait Implementations§
impl RefUnwindSafe for LeptosServerFnRegistry
impl Send for LeptosServerFnRegistry
impl Sync for LeptosServerFnRegistry
impl Unpin for LeptosServerFnRegistry
impl UnwindSafe for LeptosServerFnRegistry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more