pub enum FetchMethod {
Async,
Watch,
}
Expand description
FetchMethod
enum to specify the method of fetching the response
Async
: Fetch the response asynchronously usingtokio::spawn
Channel
: Fetch the response using a bounded multi-producer single-consumer channel
Variants§
Trait Implementations§
Source§impl Clone for FetchMethod
impl Clone for FetchMethod
Source§fn clone(&self) -> FetchMethod
fn clone(&self) -> FetchMethod
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FetchMethod
impl Debug for FetchMethod
Source§impl Default for FetchMethod
impl Default for FetchMethod
impl Copy for FetchMethod
Auto Trait Implementations§
impl Freeze for FetchMethod
impl RefUnwindSafe for FetchMethod
impl Send for FetchMethod
impl Sync for FetchMethod
impl Unpin for FetchMethod
impl UnwindSafe for FetchMethod
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