Skip to main content

ServerFnExt

Trait ServerFnExt 

Source
pub trait ServerFnExt {
    type Output;
    type Error;

    // Required method
    async fn call_remote(self, url: String) -> Result<Self::Output, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

async fn call_remote(self, url: String) -> Result<Self::Output, Self::Error>

Available on crate feature hydrate only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<In: Encoding, Err: Send + Sync + FromServerFnError, F> ServerFnExt for F
where F: FromReq<In, BrowserMockReq, Err> + IntoReq<In, BrowserRequest, Err> + Serialize + DeserializeOwned + Debug + Clone + Send + Sync + for<'de> Deserialize<'de> + ServerFn<Client = BrowserClient, Server = BrowserMockServer, Protocol = Http<In, Json>, Error = Err, InputStreamError = Err, OutputStreamError = Err>, F::Output: IntoRes<Json, BrowserMockRes, Err> + FromRes<Json, BrowserResponse, Err> + Send + for<'de> Deserialize<'de>,

Available on crate feature hydrate only.
Source§

type Output = <F as ServerFn>::Output

Source§

type Error = <F as ServerFn>::Error