pub struct Options<R, D>{
pub deps: Option<D>,
pub handler: Option<Callback<Result<R::Output, R::Error>, ()>>,
}
Expand description
Use API Options
You may specify dependencies which force the request to be reevaluated and a handler which is called every time a request is ran
Fields§
§deps: Option<D>
§handler: Option<Callback<Result<R::Output, R::Error>, ()>>
Trait Implementations§
Auto Trait Implementations§
impl<R, D> Freeze for Options<R, D>where
D: Freeze,
impl<R, D> !RefUnwindSafe for Options<R, D>
impl<R, D> !Send for Options<R, D>
impl<R, D> !Sync for Options<R, D>
impl<R, D> Unpin for Options<R, D>where
D: Unpin,
impl<R, D> !UnwindSafe for Options<R, D>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.