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§
Source§impl 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§
Source§impl Clone for BuildTargetCleanCache
impl Clone for BuildTargetCleanCache
Source§fn clone(&self) -> BuildTargetCleanCache
fn clone(&self) -> BuildTargetCleanCache
Returns a duplicate 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 BuildTargetCleanCache
impl Debug for BuildTargetCleanCache
Source§impl<'de> Deserialize<'de> for BuildTargetCleanCache
impl<'de> Deserialize<'de> for BuildTargetCleanCache
Source§fn 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
Source§impl PartialEq for BuildTargetCleanCache
impl PartialEq for BuildTargetCleanCache
Source§impl Serialize for BuildTargetCleanCache
impl Serialize for BuildTargetCleanCache
impl Eq for BuildTargetCleanCache
impl StructuralPartialEq for BuildTargetCleanCache
Auto Trait Implementations§
impl Freeze for BuildTargetCleanCache
impl RefUnwindSafe for BuildTargetCleanCache
impl Send for BuildTargetCleanCache
impl Sync for BuildTargetCleanCache
impl Unpin for BuildTargetCleanCache
impl UnwindSafe for BuildTargetCleanCache
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