pub struct FetchRequest { /* private fields */ }Implementations§
Source§impl FetchRequest
impl FetchRequest
pub fn method(self, value: impl Into<String>) -> Self
pub fn header(self, name: impl Into<String>, value: impl Into<String>) -> Self
pub fn body_bytes(self, value: Vec<u8>) -> Self
pub fn body_text(self, value: impl Into<String>) -> Self
pub fn on_complete(self, handler: impl Fn(FetchResponse) + 'static) -> Self
pub fn on_error(self, handler: impl Fn(FetchErrorEventArgs) + 'static) -> Self
pub fn start(self) -> Self
pub fn cancel(&self)
Trait Implementations§
Source§impl Drop for FetchRequest
impl Drop for FetchRequest
Auto Trait Implementations§
impl !RefUnwindSafe for FetchRequest
impl !Send for FetchRequest
impl !Sync for FetchRequest
impl !UnwindSafe for FetchRequest
impl Freeze for FetchRequest
impl Unpin for FetchRequest
impl UnsafeUnpin for FetchRequest
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