#[repr(C)]pub struct BSTEventSource<Event> {
pub sinks: BSTArray<*mut BSTEventSink<Event>>,
pub pendingRegisters: BSTArray<*mut BSTEventSink<Event>>,
pub pendingUnregisters: BSTArray<*mut BSTEventSink<Event>>,
pub lock: BSSpinLock,
pub notifying: bool,
pub pad51: u8,
pub pad52: u16,
pub pad54: u32,
}
Fields§
§sinks: BSTArray<*mut BSTEventSink<Event>>
§pendingRegisters: BSTArray<*mut BSTEventSink<Event>>
§pendingUnregisters: BSTArray<*mut BSTEventSink<Event>>
§lock: BSSpinLock
§notifying: bool
§pad51: u8
§pad52: u16
§pad54: u32
Implementations§
Source§impl<Event> BSTEventSource<Event>
impl<Event> BSTEventSource<Event>
pub const fn new() -> Self
pub fn add_event_sink(&mut self, sink: *mut BSTEventSink<Event>)
pub fn remove_event_sink(&mut self, sink: *mut BSTEventSink<Event>)
Sourcepub unsafe fn send_event(&mut self, event: *const BSTEventSink<Event>)
pub unsafe fn send_event(&mut self, event: *const BSTEventSink<Event>)
§Safety
Trait Implementations§
Source§impl<Event: Debug> Debug for BSTEventSource<Event>
impl<Event: Debug> Debug for BSTEventSource<Event>
Auto Trait Implementations§
impl<Event> !Freeze for BSTEventSource<Event>
impl<Event> RefUnwindSafe for BSTEventSource<Event>
impl<Event> !Send for BSTEventSource<Event>
impl<Event> !Sync for BSTEventSource<Event>
impl<Event> Unpin for BSTEventSource<Event>
impl<Event> UnwindSafe for BSTEventSource<Event>
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