Lines Matching defs:from
58 fn from(expiration: Expiration) -> TimerSpec {
112 fn from(timerspec: TimerSpec) -> Expiration {
210 fn from(ts: timespec) -> Self {
216 fn from(duration: Duration) -> Self {
222 fn from(timespec: TimeSpec) -> Self {
335 /// Construct a new `TimeSpec` from its components
405 .checked_mul(i64::from(rhs))
416 let usec = self.num_nanoseconds() / i64::from(rhs);
582 /// Construct a new `TimeVal` from its components
639 .checked_mul(i64::from(rhs))
650 let usec = self.num_microseconds() / i64::from(rhs);
684 fn from(tv: timeval) -> Self {
738 assert_eq!(TimeSpec::from(duration), timespec);
739 assert_eq!(Duration::from(timespec), duration);