We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f39e205 commit 2f6daaeCopy full SHA for 2f6daae
src/api.rs
@@ -90,6 +90,10 @@ impl Keyring {
90
/// Instantiate a keyring from an ID.
91
///
92
/// This is unsafe because no keyring is known to exist with the given ID.
93
+ ///
94
+ /// # Safety
95
96
+ /// This method assumes that the given serial is a valid keyring ID at the kernel level.
97
pub unsafe fn new(id: KeyringSerial) -> Self {
98
Keyring {
99
id,
@@ -471,6 +475,10 @@ impl Key {
471
475
/// Instantiate a key from an ID.
472
476
473
477
/// This is unsafe because no key is known to exist with the given ID.
478
479
480
481
+ /// This method assumes that the given serial is a valid key ID at the kernel level.
474
482
483
Self::new_impl(id)
484
}
0 commit comments