pub struct EventQueues { /* private fields */ }Expand description
Bounded priority queues for station events.
Implementations§
Source§impl EventQueues
impl EventQueues
Sourcepub fn new(limits: EventQueueLimits) -> Self
pub fn new(limits: EventQueueLimits) -> Self
Creates empty event queues.
Sourcepub fn push(
&mut self,
event: StationEvent,
) -> Result<PushOutcome, EventQueueError>
pub fn push( &mut self, event: StationEvent, ) -> Result<PushOutcome, EventQueueError>
Pushes an event according to priority and queue semantics.
Sourcepub fn pop_next(&mut self) -> Option<StationEvent>
pub fn pop_next(&mut self) -> Option<StationEvent>
Pops the next event, preferring higher priority.
Trait Implementations§
Source§impl Clone for EventQueues
impl Clone for EventQueues
Source§fn clone(&self) -> EventQueues
fn clone(&self) -> EventQueues
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EventQueues
impl RefUnwindSafe for EventQueues
impl Send for EventQueues
impl Sync for EventQueues
impl Unpin for EventQueues
impl UnsafeUnpin for EventQueues
impl UnwindSafe for EventQueues
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