pub(crate) struct Globals {
extra: OsExtraData,
registry: Registry<OsStorage>,
}Fields§
§extra: OsExtraData§registry: Registry<OsStorage>Implementations§
Source§impl Globals
impl Globals
Sourcepub(crate) fn register_listener(&self, event_id: usize) -> Receiver<()>
pub(crate) fn register_listener(&self, event_id: usize) -> Receiver<()>
Registers a new listener for event_id.
Sourcepub(crate) fn record_event(&self, event_id: usize)
pub(crate) fn record_event(&self, event_id: usize)
Marks event_id as having been delivered, without broadcasting it to
any listeners.
Sourcepub(crate) fn broadcast(&self) -> bool
pub(crate) fn broadcast(&self) -> bool
Broadcasts all previously recorded events to their respective listeners.
Returns true if an event was delivered to at least one listener.
pub(crate) fn storage(&self) -> &OsStorage
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Globals
impl RefUnwindSafe for Globals
impl Send for Globals
impl Sync for Globals
impl Unpin for Globals
impl UnsafeUnpin for Globals
impl UnwindSafe for Globals
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