pub struct Fifo { /* private fields */ }Expand description
A fresh scene-local FIFO opened before engine spawn. Its dedicated reader drains continuously, preserving partial lines; no stale file can satisfy a later scene’s wait. Drop ends the reader without waiting for engine exit.
Implementations§
Source§impl Fifo
impl Fifo
pub fn new(scene: &Scene, name: &str) -> Result<Self>
pub fn path(&self) -> &Path
pub fn line(&self) -> String
Sourcepub fn line_while(&self, scene: &mut Scene, live: Live) -> Result<String>
pub fn line_while(&self, scene: &mut Scene, live: Live) -> Result<String>
Wait for a trace while also observing child death. An outside SIGKILL returns to scene arbitration immediately instead of spending the guard waiting on a FIFO whose read/write keeper intentionally prevents EOF. A line the child wrote before it ended is still returned: the reader polls, so it can lag an exit, and calling the FIFO done then lost a stopped engine’s last trace (URS-33).
§Panics
When no line arrives before the testkit deadlock guard.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Fifo
impl !Sync for Fifo
impl !UnwindSafe for Fifo
impl Forget for Fifo
impl Freeze for Fifo
impl Move for Fifo
impl Send for Fifo
impl Unpin for Fifo
impl UnsafeUnpin for Fifo
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