pub struct BrowserClient;Expand description
Implements Client for a fetch request in the browser.
Trait Implementations§
Source§impl<Error, InputStreamError, OutputStreamError> Client<Error, InputStreamError, OutputStreamError> for BrowserClientwhere
Error: FromServerFnError,
InputStreamError: FromServerFnError,
OutputStreamError: FromServerFnError,
impl<Error, InputStreamError, OutputStreamError> Client<Error, InputStreamError, OutputStreamError> for BrowserClientwhere
Error: FromServerFnError,
InputStreamError: FromServerFnError,
OutputStreamError: FromServerFnError,
Source§type Request = BrowserRequest
type Request = BrowserRequest
The type of a request sent by this client.
Source§type Response = BrowserResponse
type Response = BrowserResponse
The type of a response received by this client.
Source§fn send(
req: <BrowserClient as Client<Error, InputStreamError, OutputStreamError>>::Request,
) -> impl Future<Output = Result<<BrowserClient as Client<Error, InputStreamError, OutputStreamError>>::Response, Error>> + Send
fn send( req: <BrowserClient as Client<Error, InputStreamError, OutputStreamError>>::Request, ) -> impl Future<Output = Result<<BrowserClient as Client<Error, InputStreamError, OutputStreamError>>::Response, Error>> + Send
Sends the request and receives a response.
Auto Trait Implementations§
impl Freeze for BrowserClient
impl RefUnwindSafe for BrowserClient
impl Send for BrowserClient
impl Sync for BrowserClient
impl Unpin for BrowserClient
impl UnsafeUnpin for BrowserClient
impl UnwindSafe for BrowserClient
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, I> IntoReactiveValue<T, __IntoReactiveValueMarkerBaseCase> for Iwhere
I: Into<T>,
impl<T, I> IntoReactiveValue<T, __IntoReactiveValueMarkerBaseCase> for Iwhere
I: Into<T>,
Source§fn into_reactive_value(self) -> T
fn into_reactive_value(self) -> T
Converts
self into a T.Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.