Struct reactor::ResourceIdGenerator
source · pub struct ResourceIdGenerator(/* private fields */);Expand description
Generator for the new ResourceIds which should be used by pollers implementing [Poll]
trait.
Implementations§
source§impl ResourceIdGenerator
impl ResourceIdGenerator
sourcepub fn next(&mut self) -> ResourceId
pub fn next(&mut self) -> ResourceId
Returns the next id for the resource.
Trait Implementations§
source§impl Clone for ResourceIdGenerator
impl Clone for ResourceIdGenerator
source§fn clone(&self) -> ResourceIdGenerator
fn clone(&self) -> ResourceIdGenerator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ResourceIdGenerator
impl Debug for ResourceIdGenerator
source§impl Default for ResourceIdGenerator
impl Default for ResourceIdGenerator
source§impl Display for ResourceIdGenerator
impl Display for ResourceIdGenerator
source§impl Hash for ResourceIdGenerator
impl Hash for ResourceIdGenerator
source§impl Ord for ResourceIdGenerator
impl Ord for ResourceIdGenerator
source§fn cmp(&self, other: &ResourceIdGenerator) -> Ordering
fn cmp(&self, other: &ResourceIdGenerator) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ResourceIdGenerator
impl PartialEq for ResourceIdGenerator
source§fn eq(&self, other: &ResourceIdGenerator) -> bool
fn eq(&self, other: &ResourceIdGenerator) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ResourceIdGenerator
impl PartialOrd for ResourceIdGenerator
source§fn partial_cmp(&self, other: &ResourceIdGenerator) -> Option<Ordering>
fn partial_cmp(&self, other: &ResourceIdGenerator) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ResourceIdGenerator
impl Eq for ResourceIdGenerator
impl StructuralPartialEq for ResourceIdGenerator
Auto Trait Implementations§
impl Freeze for ResourceIdGenerator
impl RefUnwindSafe for ResourceIdGenerator
impl Send for ResourceIdGenerator
impl Sync for ResourceIdGenerator
impl Unpin for ResourceIdGenerator
impl UnwindSafe for ResourceIdGenerator
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