pub struct SubmitQueue { /* private fields */ }Expand description
The mutex-guarded hand-back channel owned by a CesBuilder.
submit_chunk pushes from ANY thread; the planet drains on the main thread
each frame. The builder owns it, so there is no back-reference to the planet
and no reference cycle. A worker that outlives teardown_job just pushes
into a queue nobody drains — harmless.
Implementations§
Source§impl SubmitQueue
impl SubmitQueue
Sourcepub fn push(&self, s: RawSubmission)
pub fn push(&self, s: RawSubmission)
Push a raw submission (any thread).
Sourcepub fn drain(&self) -> Vec<RawSubmission>
pub fn drain(&self) -> Vec<RawSubmission>
Take everything queued (main thread, once per frame).
Sourcepub fn should_report_error(&self) -> bool
pub fn should_report_error(&self) -> bool
true the FIRST time a payload is rejected, false forever after — so
the caller prints one error, not one per frame.
Trait Implementations§
Source§impl Default for SubmitQueue
impl Default for SubmitQueue
Source§fn default() -> SubmitQueue
fn default() -> SubmitQueue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SubmitQueue
impl RefUnwindSafe for SubmitQueue
impl Send for SubmitQueue
impl Sync for SubmitQueue
impl Unpin for SubmitQueue
impl UnsafeUnpin for SubmitQueue
impl UnwindSafe for SubmitQueue
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