Skip to main content

Module documents

Module documents 

Source
Expand description

The document hand-off’s parked ask: one document handed to the reader, held until their answer.

Mirrors crate::browser’s relay shape rather than inventing a second parked one: Workspace::hand_off_document registers the call and awaits its ending; a client answers not now to decline, and the viewer’s approve or feedback - after the reader’s comments were filed - releases it with the decision and the note the reader gave. Nothing parks without a client attached to draw the ask.

Re-exports§

use forge_primitives::document::DocumentHandOffAsk; 🔒
use forge_primitives::document::DocumentHandOffEnding; 🔒
use tokio::sync::oneshot; 🔒
use crate::SessionSlot; 🔒
use crate::protocol::SessionUpdate; 🔒
use crate::workspace::Workspace; 🔒

Structs§

AbandonOnDrop 🔒
Releases a parked hand-off as DocumentHandOffEnding::Abandoned when the awaiting call goes away mid-ask - a cancelled turn must not leave the registry holding a sender nothing awaits, or an ask no view can close.
ParkedDocument 🔒
One parked call, under its id: who handed it, the ask as the read surface carries it, and the sender the awaiting tool holds.

Constants§

NO_VIEWER_CLIENT
What a hand-off answers when no client is attached to draw its ask.