pub struct RefreshOptions {
pub providers: Option<Vec<String>>,
pub allow_network: bool,
pub force: bool,
pub catalog_base_url: String,
pub cancel: CancellationToken,
}Expand description
What a refresh does.
Fields§
§providers: Option<Vec<String>>Only these providers, or all refreshable ones when None.
allow_network: boolWhether to fetch. Stored catalogs are restored either way.
force: boolFetch even when the stored catalog is fresh.
catalog_base_url: StringWhere pi.dev’s catalogs live.
cancel: CancellationTokenStops the refresh.
Trait Implementations§
Source§impl Clone for RefreshOptions
impl Clone for RefreshOptions
Source§impl Debug for RefreshOptions
impl Debug for RefreshOptions
Source§impl Default for RefreshOptions
impl Default for RefreshOptions
Source§fn default() -> RefreshOptions
fn default() -> RefreshOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for RefreshOptions
impl Freeze for RefreshOptions
impl RefUnwindSafe for RefreshOptions
impl Send for RefreshOptions
impl Sync for RefreshOptions
impl Unpin for RefreshOptions
impl UnsafeUnpin for RefreshOptions
impl UnwindSafe for RefreshOptions
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