pub trait IntoHostTime<T> {
// Required method
fn into_host_time(self) -> Result<T, TimestampError>;
}
Expand description
Utility trait for converting a Timestamp
into a host-specific time format.
Required Methods§
Sourcefn into_host_time(self) -> Result<T, TimestampError>
fn into_host_time(self) -> Result<T, TimestampError>
Converts a Timestamp
into another time representation of type T
.
This method adapts the Timestamp
to a domain-specific format, which
could represent a custom timestamp used by a light client, or any
hosting environment that requires its own time format.