pub enum RemoteActionMessage {
Show 50 variants
RetiredFeedbackRequest {
correlation: u64,
},
RetiredFeedbackResponse {
correlation: u64,
},
CatalogueRequest {
correlation: u64,
query: CatalogueQuery,
},
CatalogueResponse {
correlation: u64,
result: Result<CataloguePage, ActionCallError>,
},
Invoke(InvokeRequest),
Receipt(InvocationReceipt),
Observe {
correlation: u64,
invocation: InvocationId,
wait_ms: Option<u32>,
seen: Option<UpdateMark>,
},
Update {
invocation: InvocationId,
state: Option<InvocationState>,
correlation: Option<u64>,
},
Cancel {
invocation: InvocationId,
},
CancelResponse {
invocation: InvocationId,
result: Result<(), ActionCallError>,
},
ConfirmationRequest {
correlation: u64,
question: ConfirmationQuestion,
},
ConfirmationResponse {
correlation: u64,
result: Result<ConfirmationReply, ActionCallError>,
},
CatalogueChanged {
page: CataloguePage,
},
ContentPutRequest {
correlation: u64,
step: ContentPutStep,
},
ContentPutResponse {
correlation: u64,
result: Result<ContentPutAnswer, ActionCallError>,
},
ContentGetRequest {
correlation: u64,
content: String,
offset: u64,
length: u64,
},
ContentGetResponse {
correlation: u64,
result: Result<ContentGetAnswer, ActionCallError>,
},
ResourceRead {
correlation: u64,
on_behalf_of: Option<InvocationId>,
read: ResourceReadRequest,
},
ResourceReading {
correlation: u64,
result: Result<String, ActionCallError>,
},
ChangesRequest {
correlation: u64,
after: Option<String>,
},
ChangesResponse {
correlation: u64,
result: Result<ChangePage, ActionCallError>,
},
SurfaceRequest {
correlation: u64,
app: String,
},
SurfaceResponse {
correlation: u64,
result: Result<Option<String>, ActionCallError>,
},
ContentLinkRequest {
correlation: u64,
link: ContentLinkAsk,
},
ContentLinkResponse {
correlation: u64,
result: Result<ContentLink, ActionCallError>,
},
ChangedRequest {
correlation: u64,
scope: WatchScope,
},
ChangedResponse {
correlation: u64,
result: Result<(), ActionCallError>,
},
CallCarryRequest {
correlation: u64,
pair: Option<BridgedCall>,
},
CallCarryResponse {
correlation: u64,
result: Result<(), ActionCallError>,
},
CallReport {
correlation: u64,
report: CallReport,
},
CallReportResponse {
correlation: u64,
result: Result<(), ActionCallError>,
},
CallHeard(CallAudio),
CallSaid(CallAudio),
CallStatus(CallStatus),
AudioOutputRequest {
correlation: u64,
command: Request,
},
AudioOutputResponse {
correlation: u64,
result: Result<Snapshot, ActionCallError>,
},
StoreRequest {
correlation: u64,
command: Value,
kind: Option<String>,
},
StoreResponse {
correlation: u64,
result: Result<Value, ActionCallError>,
},
CallMediaRequest {
correlation: u64,
request: Request,
},
CallMediaResult {
correlation: u64,
result: Result<Snapshot, ActionCallError>,
},
PresenceSaid {
correlation: u64,
said: String,
},
PresenceSaidResult {
correlation: u64,
result: Result<(), ActionCallError>,
},
PresenceHeard {
heard: String,
},
ShellOpenRequest {
correlation: u64,
open: ShellOpen,
},
ShellOpenResponse {
correlation: u64,
result: Result<ShellOpened, ActionCallError>,
},
ShellInput(ShellBytes),
ShellResize {
shell: u64,
cols: u16,
rows: u16,
},
ShellClose {
shell: u64,
},
ShellOutput(ShellBytes),
ShellEnded(ShellEnded),
}Expand description
Everything that crosses the wire for remote action use.
Variants§
RetiredFeedbackRequest
A retired ask for a feedback report’s receipt: nothing answers it but
Self::RetiredFeedbackResponse. A report is filed as Chat’s
report, answered as any action is.
RetiredFeedbackResponse
The answer to a Self::RetiredFeedbackRequest, refusing it.
CatalogueRequest
Ask for one page of the actions offered to the caller.
CatalogueResponse
Answer to a Self::CatalogueRequest with the same correlation.
Invoke(InvokeRequest)
Invocation one action.
Receipt(InvocationReceipt)
Answer to Self::Invoke; a refusal is ReceiptStatus::Rejected.
Observe
Ask for an invocation’s latest state.
Fields
correlation: u64Names this ask, so its Self::Update answers it and no other: a
caller that gave up on one ask and sent another must not mistake
the first one’s late answer — which may carry the state it already
saw — for its own. An asker that names none keeps the bytes it
always sent.
invocation: InvocationIdwait_ms: Option<u32>Hold the answer until the invocation moves past seen (or, with
no seen, settles) or this many milliseconds pass, at most
MAX_REMOTE_WAIT; then answer with the state as it is. A provider
that predates it answers at once, as before.
seen: Option<UpdateMark>How far the caller has already seen the invocation get.
Update
Answer to Self::Observe; None for an id the caller does not own.
A provider may also push this unprompted as an invocation progresses.
Cancel
Ask a running invocation to stop.
Fields
invocation: InvocationIdCancelResponse
Answer to Self::Cancel.
ConfirmationRequest
Ask the person, on one of their own devices (ConfirmationQuestion).
ConfirmationResponse
Answer to Self::ConfirmationRequest, same correlation.
CatalogueChanged
What the surface offers changed: the page it lists now, sent without being asked, so the provider that placed it reads what the surface can do as it is rather than as it was when it first joined.
Fields
page: CataloguePageContentPutRequest
One step of putting bytes into the content store of the device’s
workspace (ContentPutStep): how a client of another device’s
actions (an agent’s MCP session through its own device) hands it a
file an action then names by tilo.content:<hash>.
ContentPutResponse
Answer to Self::ContentPutRequest with the same correlation.
ContentGetRequest
Ask the device for a piece of content in its workspace’s store: what a
client of another device’s actions (an agent’s MCP session through its
own device) downloads a file by, having the file’s
tilo.content:<hash> reference.
Fields
length: u64How many bytes the piece may carry; zero asks for one piece’s
worth (MAX_CONTENT_FRAME_BYTES).
ContentGetResponse
Answer to Self::ContentGetRequest with the same correlation.
ResourceRead
Read a record of the workspace read names through the one record API
(ResourceReads), decided there as every reader of it is; continuing
on_behalf_of, an invocation the provider delivered to the caller, it is
that invocation’s caller’s read. Where its answer is a decision
(ReadAnswer::Decision, ReadAnswer::WriteDecision), it asks only whether the caller
may read or change the record.
ResourceReading
Answer to Self::ResourceRead, same correlation: the readings as
JSON text (ResourceReadings::readable).
ChangesRequest
Ask for the changes to the caller’s workspace’s records after
after, a cursor an earlier answer gave (ActionProvider::change_feed).
ChangesResponse
Answer to Self::ChangesRequest, same correlation.
SurfaceRequest
Ask for the surface app’s signed package publishes, as its text.
SurfaceResponse
Answer to Self::SurfaceRequest: the text, when the workspace has it.
ContentLinkRequest
Ask the device for a link its web origin serves the content of
link.files at, for a little while (ContentLink): what a page
drags a file out by, and saves a large one through.
ContentLinkResponse
Answer to Self::ContentLinkRequest with the same correlation.
ChangedRequest
Ask the device to answer when what a watch follows under scope may have
changed (ActionProvider::changed): a write landed in the workspace’s records,
or who is in it moved.
ChangedResponse
Answer to Self::ChangedRequest, same correlation: it may have changed, or
why this provider cannot tell when it does.
CallCarryRequest
Ask the device to carry an outside service’s call into a workspace call from now on, or,
with no pair, to let go of the one it carries (call). Decided by the app’s grants and
held to the call’s rule; a device that carries no call for this app refuses.
CallCarryResponse
Answer to Self::CallCarryRequest, same correlation.
CallReport
What the app’s service says of its calls: who is in each, where the bridge stands, and the line its people see.
CallReportResponse
Answer to Self::CallReport, same correlation.
CallHeard(CallAudio)
One Opus frame an outside person said, for the workspace call.
CallSaid(CallAudio)
One Opus frame a workspace participant said, for the outside call. Sent by the device, never asked for.
CallStatus(CallStatus)
What the device says the outside call should show of who is on the workspace’s side. Sent by the device, never asked for.
AudioOutputRequest
One command for the device’s sound output, on the line an app’s launcher handed it. A
write’s PCM follows the frame as its binary body (audio_output::Request::body_len).
AudioOutputResponse
Answer to Self::AudioOutputRequest, same correlation.
StoreRequest
One command to the records of the app the connection is, in the device’s one store
(StoreCommands): collab_types::store::wire::Command as JSON. What an app’s process
reads and writes its records by. The app is the one the device started the connection’s
process as, never one the frame names, and the workspace is the frame’s
(RemoteActionFrame::workspace).
Fields
StoreResponse
Answer to Self::StoreRequest, same correlation: the store’s
collab_types::store::wire::Reply as JSON.
CallMediaRequest
One command of the call the app takes part in itself, on the line its launcher handed it
(native_media::Request): joining a workspace’s call, muting, the camera and screen it
sends, which pictures its view draws, and the status it shows.
CallMediaResult
Answer to Self::CallMediaRequest, same correlation.
PresenceSaid
What an app says of its person in its workspace, on the line its launcher handed it: one
word under the key it is said under, as collab_types::presence::Said JSON. The device
says it for the connection’s app, workspace and member in the workspace’s live session,
where the shell’s own words go, so every other device of the workspace hears it.
PresenceSaidResult
Answer to Self::PresenceSaid, same correlation: whether the device’s live presence
said the word, and why it refused it when it did not.
PresenceHeard
What another member said in the app’s workspace, as the workspace’s live session heard
it from another device: one collab_types::presence::Heard as JSON, pushed, never asked.
ShellOpenRequest
Ask the device to open a shell its shell runtime runs, carried on this connection from
now on (shell). Decided by the app’s signed manifest; a connection that is no app’s
own carries no shell.
ShellOpenResponse
Answer to Self::ShellOpenRequest, same correlation.
ShellInput(ShellBytes)
What the app typed into one of its shells.
ShellResize
One of the app’s shells’ windows is now this size, in cells.
ShellClose
The app lets one of its shells go.
ShellOutput(ShellBytes)
What one of the app’s shells printed. Sent by the device, never asked for.
ShellEnded(ShellEnded)
How one of the app’s shells ended: the last the device says of it. Sent by the device, never asked for.
Implementations§
Source§impl RemoteActionMessage
impl RemoteActionMessage
Sourcepub const fn observe(invocation: InvocationId) -> Self
pub const fn observe(invocation: InvocationId) -> Self
Ask for invocation’s state as it is now.
Sourcepub const fn waits(&self) -> bool
pub const fn waits(&self) -> bool
Whether this request asks its provider to hold the answer until the invocation moves, a person answers, or a record is written past what its reader saw, so whatever carries it must not wait behind it, and nothing that watches for stuck calls takes the wait it asked for as one.
Sourcepub const fn is_request(&self) -> bool
pub const fn is_request(&self) -> bool
Whether a provider answers this message (as opposed to a caller receiving it).
Trait Implementations§
Source§impl Clone for RemoteActionMessage
impl Clone for RemoteActionMessage
Source§impl Debug for RemoteActionMessage
impl Debug for RemoteActionMessage
Source§impl<'de> Deserialize<'de> for RemoteActionMessage
impl<'de> Deserialize<'de> for RemoteActionMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RemoteActionMessage
impl PartialEq for RemoteActionMessage
Source§impl Serialize for RemoteActionMessage
impl Serialize for RemoteActionMessage
impl StructuralPartialEq for RemoteActionMessage
Auto Trait Implementations§
impl Forget for RemoteActionMessage
impl Freeze for RemoteActionMessage
impl Move for RemoteActionMessage
impl RefUnwindSafe for RemoteActionMessage
impl Send for RemoteActionMessage
impl Sync for RemoteActionMessage
impl Unpin for RemoteActionMessage
impl UnsafeUnpin for RemoteActionMessage
impl UnwindSafe for RemoteActionMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more