pub struct KernelInputQueue { /* private fields */ }Expand description
Thread-safe bounded steering and follow-up queue applied between turns.
Implementations§
Source§impl KernelInputQueue
impl KernelInputQueue
Sourcepub fn enqueue_follow_up(
&self,
message: CanonicalMessage,
) -> Result<(), KernelError>
pub fn enqueue_follow_up( &self, message: CanonicalMessage, ) -> Result<(), KernelError>
Appends one canonical user follow-up in FIFO order.
§Errors
Returns an error for a non-user message, queue overflow, or poisoned state.
Sourcepub fn enqueue_steering(&self, text: CommandText) -> Result<(), KernelError>
pub fn enqueue_steering(&self, text: CommandText) -> Result<(), KernelError>
Appends bounded steering text for coalescing at the next turn boundary.
§Errors
Returns an error when accumulated steering exceeds the byte or message limit.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for KernelInputQueue
impl RefUnwindSafe for KernelInputQueue
impl Send for KernelInputQueue
impl Sync for KernelInputQueue
impl Unpin for KernelInputQueue
impl UnsafeUnpin for KernelInputQueue
impl UnwindSafe for KernelInputQueue
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