[−][src]Struct webe_id::WebeIDFactory
Implementations
impl WebeIDFactory
[src]
pub fn new(epoch: SystemTime, node_id: u8) -> Result<WebeIDFactory, WebeIDError>
[src]
pub fn new_with_last_time(
epoch: SystemTime,
last_duration_ms: u64,
node_id: u8
) -> Result<WebeIDFactory, WebeIDError>
[src]
epoch: SystemTime,
last_duration_ms: u64,
node_id: u8
) -> Result<WebeIDFactory, WebeIDError>
pub fn next(&mut self) -> Result<WebeID, WebeIDError>
[src]
pub fn epoch(&self) -> SystemTime
[src]
pub fn last_duration_ms(&self) -> u64
[src]
Auto Trait Implementations
impl RefUnwindSafe for WebeIDFactory
impl Send for WebeIDFactory
impl Sync for WebeIDFactory
impl Unpin for WebeIDFactory
impl UnwindSafe for WebeIDFactory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,