We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
MutexGuard
1 parent 6b4de8b commit 6075af4Copy full SHA for 6075af4
src/libstd/sync/mutex.rs
@@ -133,7 +133,14 @@ unsafe impl<T: ?Sized + Send> Sync for Mutex<T> { }
133
/// dropped (falls out of scope), the lock will be unlocked.
134
///
135
/// The data protected by the mutex can be access through this guard via its
136
-/// `Deref` and `DerefMut` implementations
+/// `Deref` and `DerefMut` implementations.
137
+///
138
+/// This structure is created by the [`lock()`] and [`try_lock()`] methods on
139
+/// [`Mutex`].
140
141
+/// [`lock()`]: struct.Mutex.html#method.lock
142
+/// [`try_lock()`]: struct.Mutex.html#method.try_lock
143
+/// [`Mutex`]: struct.Mutex.html
144
#[must_use]
145
#[stable(feature = "rust1", since = "1.0.0")]
146
pub struct MutexGuard<'a, T: ?Sized + 'a> {
0 commit comments