Enum cap_primitives::fs::SystemTimeSpec
source · pub enum SystemTimeSpec {
SymbolicNow,
Absolute(SystemTime),
}
Expand description
A value for specifying a time.
Variants§
SymbolicNow
A value which always represents the current time, in symbolic form, so that even as time elapses, it continues to represent the current time.
Absolute(SystemTime)
An absolute time value.
Implementations§
source§impl SystemTimeSpec
impl SystemTimeSpec
sourcepub fn from_std(std: SystemTimeSpec) -> Self
pub fn from_std(std: SystemTimeSpec) -> Self
Constructs a new instance of Self
from the given
fs_set_times::SystemTimeSpec
.
sourcepub const fn into_std(self) -> SystemTimeSpec
pub const fn into_std(self) -> SystemTimeSpec
Constructs a new instance of fs_set_times::SystemTimeSpec
from the
given Self
.
Trait Implementations§
source§impl Debug for SystemTimeSpec
impl Debug for SystemTimeSpec
source§impl From<SystemTime> for SystemTimeSpec
impl From<SystemTime> for SystemTimeSpec
source§fn from(time: SystemTime) -> Self
fn from(time: SystemTime) -> Self
Converts to this type from the input type.