Struct idgenerator_thin::idgen::YitIdHelper
source · 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 RefUnwindSafe for YitIdHelper
impl Send for YitIdHelper
impl Sync for YitIdHelper
impl Unpin 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