Lines Matching refs:Asn1Time
192 pub struct Asn1Time;
242 impl PartialEq<Asn1Time> for Asn1TimeRef {
243 fn eq(&self, other: &Asn1Time) -> bool { in eq()
251 impl<'a> PartialEq<Asn1Time> for &'a Asn1TimeRef {
252 fn eq(&self, other: &Asn1Time) -> bool { in eq()
267 impl PartialOrd<Asn1Time> for Asn1TimeRef {
268 fn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering> { in partial_cmp()
274 impl<'a> PartialOrd<Asn1Time> for &'a Asn1TimeRef {
275 fn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering> { in partial_cmp()
302 impl Asn1Time { impl
304 fn new() -> Result<Asn1Time, ErrorStack> { in new()
309 Ok(Asn1Time::from_ptr(handle)) in new()
314 fn from_period(period: c_long) -> Result<Asn1Time, ErrorStack> { in from_period() argument
319 Ok(Asn1Time::from_ptr(handle)) in from_period()
324 pub fn days_from_now(days: u32) -> Result<Asn1Time, ErrorStack> { in days_from_now() argument
325 Asn1Time::from_period(days as c_long * 60 * 60 * 24) in days_from_now()
330 pub fn from_unix(time: time_t) -> Result<Asn1Time, ErrorStack> { in from_unix() argument
335 Ok(Asn1Time::from_ptr(handle)) in from_unix()
342 pub fn from_str(s: &str) -> Result<Asn1Time, ErrorStack> { in from_str() argument
346 let time = Asn1Time::new()?; in from_str()
358 pub fn from_str_x509(s: &str) -> Result<Asn1Time, ErrorStack> { in from_str_x509() argument
362 let time = Asn1Time::new()?; in from_str_x509()
371 impl PartialEq for Asn1Time { implementation
372 fn eq(&self, other: &Asn1Time) -> bool { in eq()
380 impl PartialEq<Asn1TimeRef> for Asn1Time { implementation
389 impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time { implementation
398 impl PartialOrd for Asn1Time { implementation
399 fn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering> { in partial_cmp()
405 impl PartialOrd<Asn1TimeRef> for Asn1Time { implementation
412 impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time { implementation
800 Asn1Time::from_str("99991231235959Z").unwrap(); in time_from_str()
802 Asn1Time::from_str_x509("99991231235959Z").unwrap(); in time_from_str()
807 let t = Asn1Time::from_unix(0).unwrap(); in time_from_unix()
814 let a = Asn1Time::from_str("99991231235959Z").unwrap(); in time_eq()
815 let b = Asn1Time::from_str("99991231235959Z").unwrap(); in time_eq()
816 let c = Asn1Time::from_str("99991231235958Z").unwrap(); in time_eq()
833 let a = Asn1Time::from_str("99991231235959Z").unwrap(); in time_ord()
834 let b = Asn1Time::from_str("99991231235959Z").unwrap(); in time_ord()
835 let c = Asn1Time::from_str("99991231235958Z").unwrap(); in time_ord()