Skip to main content

Crate tsk_core

Crate tsk_core 

Source

Structs§

JsonRpcError
JsonRpcRequest
JsonRpcResponse
Task
Thread
ThreadCreatedEvent
ThreadResumedEvent
ThreadSwitchedEvent
ThreadUpdatedEvent
ThreadWaitedEvent

Enums§

Priority
TaskState
ThreadState

Functions§

event_log_dir
event_log_path
index_path
send_request
Connect to the daemon socket, send a JSON-RPC request, return the result.
socket_path
Derives a stable socket path from the project root directory. Uses first 8 chars of SHA-256 of the path string, so multiple projects can have daemons running simultaneously.
tasks_path
Path to the tasks file for a thread: tsk/threads/{id}-{slug}/tasks.json
thread_dir
Thread working directory: tsk/threads/{id:04}-{slug}/
threads_dir
tsk_dir