pub struct JsonFetcher;
Implementations§
Source§impl JsonFetcher
impl JsonFetcher
pub fn fetch<Body: 'static + DeserializeOwned>( request: Request, callback: impl FnOnce(Result<(Response, Result<Body>)>) + 'static, )
pub fn send_get<Body: 'static + DeserializeOwned>( uri: impl AsRef<str>, callback: impl FnOnce(Result<(Response, Result<Body>)>) + 'static, )
pub fn send_post<Body: 'static + DeserializeOwned>( uri: impl AsRef<str>, body: impl Into<JsValue>, callback: impl FnOnce(Result<(Response, Result<Body>)>) + 'static, )
pub fn send_post_json<Body: 'static + DeserializeOwned>( uri: impl AsRef<str>, body: impl Into<JsValue>, callback: impl FnOnce(Result<(Response, Result<Body>)>) + 'static, )
Trait Implementations§
Source§impl Default for JsonFetcher
impl Default for JsonFetcher
Source§fn default() -> JsonFetcher
fn default() -> JsonFetcher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JsonFetcher
impl RefUnwindSafe for JsonFetcher
impl Send for JsonFetcher
impl Sync for JsonFetcher
impl Unpin for JsonFetcher
impl UnwindSafe for JsonFetcher
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