pub struct OneshotKey(/* private fields */);Trait Implementations§
Source§impl Clone for OneshotKey
impl Clone for OneshotKey
Source§fn clone(&self) -> OneshotKey
fn clone(&self) -> OneshotKey
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 OneshotKey
impl Debug for OneshotKey
Source§impl Default for OneshotKey
impl Default for OneshotKey
Source§fn default() -> OneshotKey
fn default() -> OneshotKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OneshotKey
impl<'de> Deserialize<'de> for OneshotKey
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 From<KeyData> for OneshotKey
impl From<KeyData> for OneshotKey
Source§impl Hash for OneshotKey
impl Hash for OneshotKey
Source§impl Key for OneshotKey
impl Key for OneshotKey
Source§fn null() -> Self
fn null() -> Self
Creates a new key that is always invalid and distinct from any non-null
key. A null key can only be created through this method (or default
initialization of keys made with
new_key_type!, which calls this
method). Read moreSource§impl Ord for OneshotKey
impl Ord for OneshotKey
Source§fn cmp(&self, other: &OneshotKey) -> Ordering
fn cmp(&self, other: &OneshotKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OneshotKey
impl PartialEq for OneshotKey
Source§impl PartialOrd for OneshotKey
impl PartialOrd for OneshotKey
Source§impl Serialize for OneshotKey
impl Serialize for OneshotKey
impl Copy for OneshotKey
impl Eq for OneshotKey
impl StructuralPartialEq for OneshotKey
Auto Trait Implementations§
impl Freeze for OneshotKey
impl RefUnwindSafe for OneshotKey
impl Send for OneshotKey
impl Sync for OneshotKey
impl Unpin for OneshotKey
impl UnwindSafe for OneshotKey
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