Skip to main content

RemoteActionMessage

Enum RemoteActionMessage 

Source
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.

Fields

§correlation: u64
§

RetiredFeedbackResponse

The answer to a Self::RetiredFeedbackRequest, refusing it.

Fields

§correlation: u64
§

CatalogueRequest

Ask for one page of the actions offered to the caller.

Fields

§correlation: u64
§

CatalogueResponse

Answer to a Self::CatalogueRequest with the same correlation.

Fields

§correlation: u64
§

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: u64

Names 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: InvocationId
§wait_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.

Fields

§invocation: InvocationId
§correlation: Option<u64>

The ask this answers, as it named itself; absent for a push, and for a provider that predates named asks.

§

Cancel

Ask a running invocation to stop.

Fields

§invocation: InvocationId
§

CancelResponse

Answer to Self::Cancel.

Fields

§invocation: InvocationId
§

ConfirmationRequest

Ask the person, on one of their own devices (ConfirmationQuestion).

Fields

§correlation: u64
§

ConfirmationResponse

Answer to Self::ConfirmationRequest, same correlation.

Fields

§correlation: u64
§

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

§

ContentPutRequest

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>.

Fields

§correlation: u64
§

ContentPutResponse

Answer to Self::ContentPutRequest with the same correlation.

Fields

§correlation: u64
§

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

§correlation: u64
§content: String

The content’s reference, tilo.content:<hash>.

§offset: u64

Where in the content the piece starts.

§length: u64

How 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.

Fields

§correlation: u64
§

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.

Fields

§correlation: u64
§on_behalf_of: Option<InvocationId>
§

ResourceReading

Answer to Self::ResourceRead, same correlation: the readings as JSON text (ResourceReadings::readable).

Fields

§correlation: u64
§

ChangesRequest

Ask for the changes to the caller’s workspace’s records after after, a cursor an earlier answer gave (ActionProvider::change_feed).

Fields

§correlation: u64
§

ChangesResponse

Answer to Self::ChangesRequest, same correlation.

Fields

§correlation: u64
§

SurfaceRequest

Ask for the surface app’s signed package publishes, as its text.

Fields

§correlation: u64
§

SurfaceResponse

Answer to Self::SurfaceRequest: the text, when the workspace has it.

Fields

§correlation: u64
§

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.

Fields

§correlation: u64
§

ContentLinkResponse

Answer to Self::ContentLinkRequest with the same correlation.

Fields

§correlation: u64
§

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.

Fields

§correlation: u64
§

ChangedResponse

Answer to Self::ChangedRequest, same correlation: it may have changed, or why this provider cannot tell when it does.

Fields

§correlation: u64
§

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.

Fields

§correlation: u64
§

CallCarryResponse

Answer to Self::CallCarryRequest, same correlation.

Fields

§correlation: u64
§

CallReport

What the app’s service says of its calls: who is in each, where the bridge stands, and the line its people see.

Fields

§correlation: u64
§report: CallReport
§

CallReportResponse

Answer to Self::CallReport, same correlation.

Fields

§correlation: u64
§

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).

Fields

§correlation: u64
§command: Request
§

AudioOutputResponse

Answer to Self::AudioOutputRequest, same correlation.

Fields

§correlation: u64
§

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

§correlation: u64
§command: Value
§kind: Option<String>

The kind a record the command founds is of, as the app names it; a record of a kind its manifest does not declare is not founded.

§

StoreResponse

Answer to Self::StoreRequest, same correlation: the store’s collab_types::store::wire::Reply as JSON.

Fields

§correlation: u64
§

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.

Fields

§correlation: u64
§request: Request
§

CallMediaResult

Answer to Self::CallMediaRequest, same correlation.

Fields

§correlation: u64
§

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.

Fields

§correlation: u64
§said: String
§

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.

Fields

§correlation: u64
§

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.

Fields

§heard: String
§

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.

Fields

§correlation: u64
§

ShellOpenResponse

Answer to Self::ShellOpenRequest, same correlation.

Fields

§correlation: u64
§

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.

Fields

§shell: u64
§cols: u16
§rows: u16
§

ShellClose

The app lets one of its shells go.

Fields

§shell: u64
§

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

Source

pub const fn observe(invocation: InvocationId) -> Self

Ask for invocation’s state as it is now.

Source

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.

Source

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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RemoteActionMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RemoteActionMessage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for RemoteActionMessage

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RemoteActionMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RemoteActionMessage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more