pub struct YitIdHelper;Implementations§
Source§impl YitIdHelper
impl YitIdHelper
pub fn set_id_generator(options: IdGeneratorOptions)
pub fn set_worker_id(worker_id: u32)
pub fn next_id() -> i64
Auto Trait Implementations§
impl Freeze for YitIdHelper
impl RefUnwindSafe for YitIdHelper
impl Send for YitIdHelper
impl Sync for YitIdHelper
impl Unpin for YitIdHelper
impl UnsafeUnpin for YitIdHelper
impl UnwindSafe for YitIdHelper
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