pub struct Key {
state: &'static KeyState,
}Fields§
§state: &'static KeyStateImplementations§
Source§impl Key
impl Key
pub fn open_by_alias(name: &str) -> Result<Self, Error>
pub fn open_by_label(label: &str) -> Result<Self, Error>
pub fn open_by_code(code: u32) -> Result<Self, Error>
fn open_for_node(node: usize) -> Result<Self, Error>
pub fn code(&self) -> u32
pub fn label(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for Key
impl !RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl !UnwindSafe for Key
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