Enum deno_emit::CacheSetting
source · pub enum CacheSetting {
Only,
Use,
Reload,
}
Variants§
Only
Attempts to load a specifier from the cache.
This is used to see whether the specifier is in the cache for jsr:
specifiers.
- If it is, then it will use the source provided to get the module information.
- If not, then it will use the manifest information to do resolution and
issue a separate request to the
load
method in order to get the source.
Use
The implementation should prefer using the cache.
Reload
Loads a specifier where the implementation should not load
from an internal cache. This is only ever done when loading
jsr:
specifier module information and the version constraint
cannot be resolved.
Implementations§
Trait Implementations§
source§impl Clone for CacheSetting
impl Clone for CacheSetting
source§fn clone(&self) -> CacheSetting
fn clone(&self) -> CacheSetting
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 CacheSetting
impl Debug for CacheSetting
source§impl PartialEq for CacheSetting
impl PartialEq for CacheSetting
source§fn eq(&self, other: &CacheSetting) -> bool
fn eq(&self, other: &CacheSetting) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CacheSetting
impl Eq for CacheSetting
impl StructuralEq for CacheSetting
impl StructuralPartialEq for CacheSetting
Auto Trait Implementations§
impl RefUnwindSafe for CacheSetting
impl Send for CacheSetting
impl Sync for CacheSetting
impl Unpin for CacheSetting
impl UnwindSafe for CacheSetting
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.