pub struct HandleGenerator { /* private fields */ }
Expand description
A Handle Generator.
This object will always return a different ID.
Well, it will wrap after 2**32
IDs. But most systems won’t open that many
files, and if they do, they are unlikely to hold one file open and then
open/close 2**32 - 1
others.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HandleGenerator
impl RefUnwindSafe for HandleGenerator
impl Send for HandleGenerator
impl Sync for HandleGenerator
impl Unpin for HandleGenerator
impl UnwindSafe for HandleGenerator
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