pub enum Timestamp {
TimeOnly {
hour: u8,
min: u8,
sec: u8,
usec: u32,
},
DateTime {
year: u16,
month: u8,
day: u8,
hour: u8,
min: u8,
sec: u8,
usec: u32,
},
}Expand description
Frame timestamp, either time-only or full date+time.
Older FreeSWITCH versions write HH:MM:SS.usec, newer versions write
YYYY-MM-DD HH:MM:SS.usec. Both formats are supported.
Variants§
TimeOnly
HH:MM:SS.usec — no date component.
Fields
DateTime
YYYY-MM-DD HH:MM:SS.usec — full date and time.
Implementations§
Trait Implementations§
impl Copy for Timestamp
impl Eq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnsafeUnpin for Timestamp
impl UnwindSafe for Timestamp
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