pub struct TerminalRing { /* private fields */ }Expand description
Bounded terminal-exit history for one supervised module.
This belongs to the module rather than an individual child so a replacement process retains the exits that caused it to exist.
Implementations§
Source§impl TerminalRing
impl TerminalRing
pub fn new(config: TerminalRingConfig, daemon_started_at_ms: u64) -> Self
pub fn push(&mut self, entry: TerminalRecord)
pub fn snapshot(&self) -> TerminalHistorySnapshot
Trait Implementations§
Auto Trait Implementations§
impl Forget for TerminalRing
impl Freeze for TerminalRingwhere
*const ArcInner<TerminalJournal> is !null: Freeze,
PhantomData<ArcInner<TerminalJournal>>: Freeze,
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<TerminalRecord>: Freeze,
impl Move for TerminalRing
impl RefUnwindSafe for TerminalRingwhere
Atomic<usize>: RefUnwindSafe,
Chan<Job, Semaphore>: RefUnwindSafe,
Mutex<Option<OwnedPermit<Job>>>: RefUnwindSafe,
Mutex<Progress>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
Mutex<()>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
impl Send for TerminalRing
impl Sync for TerminalRing
impl Unpin for TerminalRing
impl UnsafeUnpin for TerminalRingwhere
*const ArcInner<TerminalJournal> is !null: UnsafeUnpin,
PhantomData<ArcInner<TerminalJournal>>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<TerminalRecord>: UnsafeUnpin,
impl UnwindSafe for TerminalRing
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