pub trait IntoTimestamp {
// Required method
fn into_timestamp(self) -> Result<Timestamp, TimestampError>;
}Expand description
Utility trait for converting an arbitrary host-specific time format into a
Timestamp.
Required Methods§
Sourcefn into_timestamp(self) -> Result<Timestamp, TimestampError>
fn into_timestamp(self) -> Result<Timestamp, TimestampError>
Converts a time representation of type T back into a Timestamp.
This can be used to convert from custom light client or host time
formats back into the standard Timestamp format.