Struct bsp_types::BuildTargetCleanCache
source · [−]pub struct BuildTargetCleanCache { /* private fields */ }Expand description
The clean cache request is sent from the client to the server to reset any state associated with a given build target. The state can live either in the build tool or in the file system.
The build tool defines the exact semantics of the clean cache request:
Stateless build tools are free to ignore the request and respond with a successful response. Stateful build tools must ensure that invoking compilation on a target that has been cleaned results in a full compilation.
Implementations
sourceimpl BuildTargetCleanCache
impl BuildTargetCleanCache
sourcepub fn targets(&self) -> &[BuildTargetIdentifier]
pub fn targets(&self) -> &[BuildTargetIdentifier]
Get a reference to the bsp btclean cache params’s targets.
sourcepub fn targets_mut(&mut self) -> &mut Vec<BuildTargetIdentifier>
pub fn targets_mut(&mut self) -> &mut Vec<BuildTargetIdentifier>
Get a mutable reference to the bsp btclean cache params’s targets.
pub fn is_empty(&self) -> bool
sourcepub fn set_targets(&mut self, targets: Vec<BuildTargetIdentifier>)
pub fn set_targets(&mut self, targets: Vec<BuildTargetIdentifier>)
Set the bsp btclean cache params’s targets.
Trait Implementations
sourceimpl Clone for BuildTargetCleanCache
impl Clone for BuildTargetCleanCache
sourcefn clone(&self) -> BuildTargetCleanCache
fn clone(&self) -> BuildTargetCleanCache
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BuildTargetCleanCache
impl Debug for BuildTargetCleanCache
sourceimpl<'de> Deserialize<'de> for BuildTargetCleanCache
impl<'de> Deserialize<'de> for BuildTargetCleanCache
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<BuildTargetCleanCache> for BuildTargetCleanCache
impl PartialEq<BuildTargetCleanCache> for BuildTargetCleanCache
sourcefn eq(&self, other: &BuildTargetCleanCache) -> bool
fn eq(&self, other: &BuildTargetCleanCache) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BuildTargetCleanCache) -> bool
fn ne(&self, other: &BuildTargetCleanCache) -> bool
This method tests for !=.
sourceimpl Serialize for BuildTargetCleanCache
impl Serialize for BuildTargetCleanCache
impl Eq for BuildTargetCleanCache
impl StructuralEq for BuildTargetCleanCache
impl StructuralPartialEq for BuildTargetCleanCache
Auto Trait Implementations
impl RefUnwindSafe for BuildTargetCleanCache
impl Send for BuildTargetCleanCache
impl Sync for BuildTargetCleanCache
impl Unpin for BuildTargetCleanCache
impl UnwindSafe for BuildTargetCleanCache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more