pub struct ParsedId {
pub ts: u64,
pub pid: u16,
pub seq: u16,
}Available on crate feature
parse only.Expand description
Parsed snowflake ID components 解析后的雪花ID组件
Fields§
§ts: u64Timestamp offset from epoch (ms) 相对纪元的时间戳偏移(毫秒)
pid: u16Process/machine ID 进程/机器号
seq: u16Sequence number 序列号
Trait Implementations§
impl Copy for ParsedId
impl Eq for ParsedId
impl StructuralPartialEq for ParsedId
Auto Trait Implementations§
impl Freeze for ParsedId
impl RefUnwindSafe for ParsedId
impl Send for ParsedId
impl Sync for ParsedId
impl Unpin for ParsedId
impl UnwindSafe for ParsedId
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more