pub struct Timestamp32 { /* private fields */ }
Expand description
Represents timestamp 32 extension type. This stores 32bit unsigned seconds
Implementations§
Trait Implementations§
Source§impl Clone for Timestamp32
impl Clone for Timestamp32
Source§fn clone(&self) -> Timestamp32
fn clone(&self) -> Timestamp32
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Timestamp32
impl Debug for Timestamp32
Source§impl<'de> DecodeBorrowed<'de> for Timestamp32
impl<'de> DecodeBorrowed<'de> for Timestamp32
Source§type Value = Timestamp32
type Value = Timestamp32
The decoded value.
Source§fn decode_borrowed_with_format<R>(
format: Format,
reader: &mut R,
) -> Result<Self::Value, DecodeError<R::Error>>where
R: IoRead<'de>,
fn decode_borrowed_with_format<R>(
format: Format,
reader: &mut R,
) -> Result<Self::Value, DecodeError<R::Error>>where
R: IoRead<'de>,
Decode with a previously read
Format
.Source§fn decode_borrowed<R>(
reader: &mut R,
) -> Result<<Self as DecodeBorrowed<'de>>::Value, Error<R::Error>>where
R: IoRead<'de>,
fn decode_borrowed<R>(
reader: &mut R,
) -> Result<<Self as DecodeBorrowed<'de>>::Value, Error<R::Error>>where
R: IoRead<'de>,
Decode the next value.
Source§impl<W: IoWrite> Encode<W> for Timestamp32
impl<W: IoWrite> Encode<W> for Timestamp32
Source§impl From<Timestamp32> for Duration
impl From<Timestamp32> for Duration
Source§fn from(value: Timestamp32) -> Self
fn from(value: Timestamp32) -> Self
Converts to this type from the input type.
Source§impl From<Timestamp32> for FixedExtension<4>
impl From<Timestamp32> for FixedExtension<4>
Source§fn from(value: Timestamp32) -> Self
fn from(value: Timestamp32) -> Self
Converts to this type from the input type.
Source§impl Ord for Timestamp32
impl Ord for Timestamp32
Source§fn cmp(&self, other: &Timestamp32) -> Ordering
fn cmp(&self, other: &Timestamp32) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Timestamp32
impl PartialEq for Timestamp32
Source§impl PartialOrd for Timestamp32
impl PartialOrd for Timestamp32
Source§impl TryFrom<Duration> for Timestamp32
impl TryFrom<Duration> for Timestamp32
Source§impl TryFrom<ExtensionRef<'_>> for Timestamp32
impl TryFrom<ExtensionRef<'_>> for Timestamp32
Source§type Error = TryFromTimestampError
type Error = TryFromTimestampError
The type returned in the event of a conversion error.
Source§impl TryFrom<FixedExtension<4>> for Timestamp32
impl TryFrom<FixedExtension<4>> for Timestamp32
Source§type Error = TryFromTimestampError
type Error = TryFromTimestampError
The type returned in the event of a conversion error.
impl Copy for Timestamp32
impl Eq for Timestamp32
impl StructuralPartialEq for Timestamp32
Auto Trait Implementations§
impl Freeze for Timestamp32
impl RefUnwindSafe for Timestamp32
impl Send for Timestamp32
impl Sync for Timestamp32
impl Unpin for Timestamp32
impl UnwindSafe for Timestamp32
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> Decode<'de> for Twhere
T: DecodeBorrowed<'de> + 'de,
impl<'de, T> Decode<'de> for Twhere
T: DecodeBorrowed<'de> + 'de,
Source§type Value<'a> = <T as DecodeBorrowed<'de>>::Value
where
'de: 'a,
T: 'a
type Value<'a> = <T as DecodeBorrowed<'de>>::Value where 'de: 'a, T: 'a
The decoded value (may borrow for
'a
).