Struct
AutoLock
pub struct AutoLock(pub Duration);Expand description
Time to lock the device after inactivity.
Tuple Fields
0: DurationTrait Implementations
impl AsScalar<2> for AutoLock
impl AsScalar<2> for AutoLock
fn as_scalar(&self) -> [u32; 2]
impl Clone for AutoLock
impl Clone for AutoLock
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for AutoLock
impl Debug for AutoLock
impl<'de> Deserialize<'de> for AutoLock
impl<'de> Deserialize<'de> for AutoLock
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
impl From<AutoLock> for Duration
impl From<AutoLock> for Duration
impl From<Duration> for AutoLock
impl From<Duration> for AutoLock
fn from(value: Duration) -> Self
fn from(value: Duration) -> Self
Converts to this type from the input type.
impl FromScalar<2> for AutoLock
impl FromScalar<2> for AutoLock
fn from_scalar(value: [u32; 2]) -> Self
impl Hash for AutoLock
impl Hash for AutoLock
1.3.0fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,
Feeds a slice of this type into the given [
Hasher]. Read moreimpl PartialEq for AutoLock
impl PartialEq for AutoLock
impl Serialize for AutoLock
impl Serialize for AutoLock
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more