pub(super) struct RegistrationSet {
num_pending_release: AtomicUsize,
}Fields§
§num_pending_release: AtomicUsizeImplementations§
Source§impl RegistrationSet
impl RegistrationSet
pub(super) fn new() -> (RegistrationSet, Synced)
pub(super) fn is_shutdown(&self, synced: &Synced) -> bool
Sourcepub(super) fn needs_release(&self) -> bool
pub(super) fn needs_release(&self) -> bool
Returns true if there are registrations that need to be released
pub(super) fn allocate(&self, synced: &mut Synced) -> Result<Arc<ScheduledIo>>
pub(super) fn deregister( &self, synced: &mut Synced, registration: &Arc<ScheduledIo>, ) -> bool
pub(super) fn shutdown(&self, synced: &mut Synced) -> Vec<Arc<ScheduledIo>>
pub(super) fn release(&self, synced: &mut Synced)
pub(super) unsafe fn remove(&self, synced: &mut Synced, io: &Arc<ScheduledIo>)
Auto Trait Implementations§
impl !Freeze for RegistrationSet
impl RefUnwindSafe for RegistrationSet
impl Send for RegistrationSet
impl Sync for RegistrationSet
impl Unpin for RegistrationSet
impl UnsafeUnpin for RegistrationSet
impl UnwindSafe for RegistrationSet
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