Skip to main content

Crate moire_types

Crate moire_types 

Source
Expand description

Core graph nomenclature used across Peep’s runtime model.

  • Event: a point-in-time occurrence with a timestamp.
  • Entity: a runtime thing that exists over time (for example a lock, future, channel, request, or connection).
  • Edge: a relationship between entities (causal or structural).
  • Scope: an execution container that groups entities (for example a process, thread, or task).

r[impl model.summary] In short: events happen to entities, entities are connected by edges, and entities live inside scopes.

Macros§

declare_edge_kind_slots
declare_entity_body_slots
declare_event_kind_slots
declare_event_target_slots
declare_scope_body_slots
define_entity_body
impl_edge_kind_slot
impl_entity_body_slot
impl_event_kind_slot
impl_event_target_slot
impl_scope_body_slot
impl_sqlite_json

Structs§

AetherEntity
Synthetic entity for uninstrumented tasks.
ApiError
BacktraceFrameResolved
BacktraceFrameUnresolved
BacktraceId
BroadcastRxEntity
BroadcastTxEntity
ChannelReceivedEvent
ChannelReceivedKindSlot
ChannelSentEvent
ChannelSentKindSlot
CommandEntity
ConnectedProcessInfo
ConnectionId
ConnectionScopeBody
ConnectionScopeSlot
ConnectionsResponse
API response for connected processes.
ContextCodeLine
ContextSeparator
CustomEntity
A user-defined entity kind with arbitrary metadata.
CustomEventKind
A user-defined event kind with arbitrary payload.
CutAck
Process-to-server acknowledgement of cursor for a cut barrier.
CutId
Logical barrier identifier used to coordinate multi-process “cuts”.
CutRequest
Server-to-process request to acknowledge current cursor for a cut.
CutStatusResponse
DiffCheckpoint
Optional periodic checkpoint to bound replay time.
Edge
Relationship between two entities.
Entity
A: future, a lock, a channel end (tx, rx), a connection leg, a socket, etc.
EntityId
Opaque textual entity identifier suitable for wire formats and JS runtimes.
EntityTargetSlot
Event
EventId
Opaque textual event identifier suitable for wire formats and JS runtimes.
FileOpEntity
FrameSummary
FutureEntity
HeldByEdgeKindSlot
Json
Raw JSON text payload used by request/response entities.
LineRange
A 1-based inclusive line range within a source file.
LockEntity
MpscRxEntity
MpscTxEntity
NetAcceptEntity
NetConnectEntity
NetReadEntity
NetWriteEntity
NotifyEntity
OnceCellEntity
OneshotRxEntity
OneshotTxEntity
PTime
process start time + N milliseconds
PairedWithEdgeKindSlot
PollsEdgeKindSlot
ProcessFrameView
Per-process data within a recording frame.
ProcessId
ProcessScopeBody
ProcessScopeSlot
ProcessSnapshotView
Per-process envelope inside a snapshot cut.
PullChangesRequest
Pull request for change stream deltas.
PullChangesResponse
Delta response for one pull step.
QueryRequest
RecordCurrentResponse
RecordStartRequest
RecordingFrame
A single recorded frame — a point-in-time snapshot of all processes.
RecordingImportBody
RecordingImportFrame
RecordingSession
Metadata for a recording session.
RecordingSessionInfo
RequestEntity
Correlation token for RPC is the request entity id propagated in metadata. The receiver generates a fresh response entity id and emits request -> response.
ResponseEntity
Scope
A scope groups execution context over time (for example process/thread/task/connection).
ScopeEntityLink
ScopeId
Opaque textual scope identifier suitable for wire formats and JS runtimes.
ScopeTargetSlot
SemaphoreEntity
SeqNo
Monotonic sequence number within one process change stream.
SessionId
Snapshot
A snapshot is a point-in-time process envelope of graph state.
SnapshotBacktrace
SnapshotCutResponse
Top-level response for /api/snapshot.
SnapshotFrameRecord
SnapshotSymbolicationUpdate
SourcePreviewBatchRequest
Request body for POST /api/source/previews.
SourcePreviewBatchResponse
Response for POST /api/source/previews.
SourcePreviewResponse
Response for GET /api/source/preview.
SqlRequest
SqlResponse
StampedChange
A sequence-stamped change item.
StateChangedKindSlot
StreamCursor
Last durable/applied cursor for one stream.
StreamId
Identity of one append-only change stream.
TaskScopeBody
TaskScopeSlot
ThreadScopeBody
ThreadScopeSlot
TimedOutProcess
TriggerCutResponse
WaitingOnEdgeKindSlot
WatchRxEntity
WatchTxEntity

Enums§

Change
One canonical graph mutation in the append-only stream.
ChannelDir
Direction
EdgeKind
EntityBody
EventKind
EventTarget
FileOpKind
LockKind
OnceCellState
RecordingSessionStatus
RecordingStatus
Status of a recording session.
ResponseError
ResponseStatus
ScopeBody
SnapshotBacktraceFrame
SourceContextLine
A single entry in a syntax-highlighted source context excerpt.

Traits§

EdgeKindSlot
EntityBodySlot
EventKindSlot
EventTargetSlot
ScopeBodySlot

Functions§

next_process_id
process_prefix_u16

Type Aliases§

Aether
BroadcastRx
BroadcastTx
Command
Custom
FileOp
Future
Lock
MpscRx
MpscTx
NetAccept
NetConnect
NetRead
NetWrite
Notify
OnceCell
OneshotRx
OneshotTx
Request
Response
Semaphore
WatchRx
WatchTx