File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,6 @@ use std::io;
7070/// The style of lock to acquire.
7171#[ derive( Copy , Clone , Debug ) ]
7272pub enum CacheLockMode {
73- /// A `Shared` lock allows multiple cargos to read from the source files.
74- ///
75- /// If another cargo has a `MutateExclusive` lock, then an attempt to get
76- /// a `Shared` will block.
77- ///
78- /// If another cargo has a `DownloadExclusive` lock, then the both can
79- /// operate concurrently under the assumption that downloading does not
80- /// modify existing source files.
81- Shared ,
8273 /// A `DownloadExclusive` lock ensures that only one cargo is downloading
8374 /// new packages.
8475 ///
@@ -88,6 +79,15 @@ pub enum CacheLockMode {
8879 /// If another cargo has a `Shared` lock, then both can operate
8980 /// concurrently.
9081 DownloadExclusive ,
82+ /// A `Shared` lock allows multiple cargos to read from the source files.
83+ ///
84+ /// If another cargo has a `MutateExclusive` lock, then an attempt to get
85+ /// a `Shared` will block.
86+ ///
87+ /// If another cargo has a `DownloadExclusive` lock, then the both can
88+ /// operate concurrently under the assumption that downloading does not
89+ /// modify existing source files.
90+ Shared ,
9191 /// A `MutateExclusive` lock ensures no other cargo is reading or writing
9292 /// from the package caches.
9393 ///
You can’t perform that action at this time.
0 commit comments