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§
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", so this trait is not object safe.
Implementors§
Source§impl<In: Encoding, Err: Serialize + DeserializeOwned + Debug + Clone + Send + Sync + Display + FromStr + 'static, F> ServerFnExt for Fwhere
F: FromReq<In, BrowserMockReq, ServerFnError<Err>> + IntoReq<In, BrowserRequest, ServerFnError<Err>> + Serialize + DeserializeOwned + Debug + Clone + Send + Sync + for<'de> Deserialize<'de> + ServerFn<Client = BrowserClient, Server = BrowserMockServer, Protocol = Http<In, Json>, Error = ServerFnError<Err>, InputStreamError = ServerFnError<Err>, OutputStreamError = ServerFnError<Err>>,
F::Output: IntoRes<Json, BrowserMockRes, ServerFnError<Err>> + FromRes<Json, BrowserResponse, ServerFnError<Err>> + Send + for<'de> Deserialize<'de>,
Available on crate feature hydrate
only.
impl<In: Encoding, Err: Serialize + DeserializeOwned + Debug + Clone + Send + Sync + Display + FromStr + 'static, F> ServerFnExt for Fwhere
F: FromReq<In, BrowserMockReq, ServerFnError<Err>> + IntoReq<In, BrowserRequest, ServerFnError<Err>> + Serialize + DeserializeOwned + Debug + Clone + Send + Sync + for<'de> Deserialize<'de> + ServerFn<Client = BrowserClient, Server = BrowserMockServer, Protocol = Http<In, Json>, Error = ServerFnError<Err>, InputStreamError = ServerFnError<Err>, OutputStreamError = ServerFnError<Err>>,
F::Output: IntoRes<Json, BrowserMockRes, ServerFnError<Err>> + FromRes<Json, BrowserResponse, ServerFnError<Err>> + Send + for<'de> Deserialize<'de>,
Available on crate feature
hydrate
only.