pub struct EpollInterestTable(BTreeMap<FdId, Vec<Weak<RefCell<EpollEventInterest>>>>);
Expand description
The table of all EpollEventInterest. The BTreeMap key is the FdId of an active file description registered with any epoll instance. The value is a list of EpollEventInterest associated with that file description.
Tuple Fields§
§0: BTreeMap<FdId, Vec<Weak<RefCell<EpollEventInterest>>>>
Implementations§
source§impl EpollInterestTable
impl EpollInterestTable
pub(crate) fn new() -> Self
pub fn insert_epoll_interest( &mut self, id: FdId, fd: Weak<RefCell<EpollEventInterest>>, )
pub fn get_epoll_interest( &self, id: FdId, ) -> Option<&Vec<Weak<RefCell<EpollEventInterest>>>>
pub fn get_epoll_interest_mut( &mut self, id: FdId, ) -> Option<&mut Vec<Weak<RefCell<EpollEventInterest>>>>
pub fn remove(&mut self, id: FdId)
Auto Trait Implementations§
impl Freeze for EpollInterestTable
impl !RefUnwindSafe for EpollInterestTable
impl !Send for EpollInterestTable
impl !Sync for EpollInterestTable
impl Unpin for EpollInterestTable
impl !UnwindSafe for EpollInterestTable
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes