Skip to main content

Message

Enum Message 

Source
pub enum Message {
Show 47 variants ProofLookupBegin { transfer_id: String, total_length: u64, action: ProofAction, lease_id: String, }, ProofLookupReady { credit: u32, }, ProofReady { original_transfer_id: String, approvals_transfer_id: String, }, ProofObserveBegin { transfer_id: String, total_length: u64, lease_id: String, worktree: Worktree, }, ProofApprovalsBegin { transfer_id: String, total_length: u64, proof_id: String, alias_digest: String, }, ProofOutputBegin { transfer_id: String, total_length: u64, }, ProofPrepared { plan_id: String, }, ProofExisting { receipt: Receipt, }, ProofMissing {}, ProofCancel { lease_id: String, plan_id: String, }, ProofRelease { lease_id: String, observation_id: String, }, ProofLookupChunk { transfer_id: String, offset: u64, }, ProofLookupEnd { transfer_id: String, sha256: String, }, ProofOriginalChunk { transfer_id: String, offset: u64, }, ProofOriginalEnd { transfer_id: String, sha256: String, }, ProofApprovalsChunk { transfer_id: String, offset: u64, }, ProofApprovalsEnd { transfer_id: String, sha256: String, }, ProofAliasesChunk { transfer_id: String, offset: u64, }, ProofAliasesEnd { transfer_id: String, sha256: String, }, ProofOutputChunk { transfer_id: String, offset: u64, }, ProofOutputEnd { transfer_id: String, sha256: String, }, Hello { capabilities: Vec<String>, max_header: u32, max_payload: u32, }, Welcome { capabilities: Vec<String>, max_header: u32, max_payload: u32, initial_credit: u32, target_binding: String, runtime_generation: String, container_start_base64: Option<String>, }, Register { lease_id: String, client_id: String, workspace_id: String, target_binding: String, runtime_generation: String, }, Release { lease_id: String, intent: ReleaseIntent, }, Authentication { ssh_auth_sock: Option<String>, }, Ack {}, Credit { bytes: u32, }, Read { path_base64: String, }, Receipt { state: ReceiptState, saved_version: Option<WireVersion>, saved_revision: Option<u64>, safe_message: String, failure: Option<WireFailure>, observed: WireObservation, }, Cancellation { outcome: CancelOutcome, }, ServiceCall { call: Call, }, ServiceEvent { offset: u64, total_length: u64, sha256: String, terminal: bool, }, FileList { path_base64: String, }, ReadBegin { transfer_id: String, path_base64: String, version: String, total_length: u64, }, ReadChunk { transfer_id: String, offset: u64, }, ReadEnd { transfer_id: String, sha256: String, }, UploadBegin { transfer_id: String, path_base64: String, total_length: u64, }, UploadChunk { transfer_id: String, offset: u64, }, UploadEnd { transfer_id: String, sha256: String, }, CreateCommit { transfer_id: String, }, SaveCommit { transfer_id: String, submitted_revision: u64, expected_version: Option<String>, }, SaveCommitOwned { transfer_id: String, lease_id: String, submitted_revision: u64, expected_version: Option<String>, }, Inspect { operation_id: String, }, TerminalOutput { session_id: String, }, Cancel { request_id: u64, }, Error { code: String, safe_message: String, },
}

Variants§

§

ProofLookupBegin

Fields

§transfer_id: String
§total_length: u64
§lease_id: String
§

ProofLookupReady

Fields

§credit: u32
§

ProofReady

Fields

§original_transfer_id: String
§approvals_transfer_id: String
§

ProofObserveBegin

Fields

§transfer_id: String
§total_length: u64
§lease_id: String
§worktree: Worktree
§

ProofApprovalsBegin

Fields

§transfer_id: String
§total_length: u64
§proof_id: String
§alias_digest: String
§

ProofOutputBegin

Fields

§transfer_id: String
§total_length: u64
§

ProofPrepared

Fields

§plan_id: String
§

ProofExisting

Fields

§receipt: Receipt
§

ProofMissing

§

ProofCancel

Fields

§lease_id: String
§plan_id: String
§

ProofRelease

Fields

§lease_id: String
§observation_id: String
§

ProofLookupChunk

Fields

§transfer_id: String
§offset: u64
§

ProofLookupEnd

Fields

§transfer_id: String
§sha256: String
§

ProofOriginalChunk

Fields

§transfer_id: String
§offset: u64
§

ProofOriginalEnd

Fields

§transfer_id: String
§sha256: String
§

ProofApprovalsChunk

Fields

§transfer_id: String
§offset: u64
§

ProofApprovalsEnd

Fields

§transfer_id: String
§sha256: String
§

ProofAliasesChunk

Fields

§transfer_id: String
§offset: u64
§

ProofAliasesEnd

Fields

§transfer_id: String
§sha256: String
§

ProofOutputChunk

Fields

§transfer_id: String
§offset: u64
§

ProofOutputEnd

Fields

§transfer_id: String
§sha256: String
§

Hello

Fields

§capabilities: Vec<String>
§max_header: u32
§max_payload: u32
§

Welcome

Fields

§capabilities: Vec<String>
§max_header: u32
§max_payload: u32
§initial_credit: u32
§target_binding: String
§runtime_generation: String
§container_start_base64: Option<String>
§

Register

Fields

§lease_id: String
§client_id: String
§workspace_id: String
§target_binding: String
§runtime_generation: String
§

Release

Fields

§lease_id: String
§

Authentication

Fields

§ssh_auth_sock: Option<String>
§

Ack

§

Credit

Fields

§bytes: u32
§

Read

Fields

§path_base64: String
§

Receipt

Fields

§saved_version: Option<WireVersion>
§saved_revision: Option<u64>
§safe_message: String
§

Cancellation

Fields

§

ServiceCall

Fields

§call: Call
§

ServiceEvent

Fields

§offset: u64
§total_length: u64
§sha256: String
§terminal: bool
§

FileList

Fields

§path_base64: String
§

ReadBegin

Fields

§transfer_id: String
§path_base64: String
§version: String
§total_length: u64
§

ReadChunk

Fields

§transfer_id: String
§offset: u64
§

ReadEnd

Fields

§transfer_id: String
§sha256: String
§

UploadBegin

Fields

§transfer_id: String
§path_base64: String
§total_length: u64
§

UploadChunk

Fields

§transfer_id: String
§offset: u64
§

UploadEnd

Fields

§transfer_id: String
§sha256: String
§

CreateCommit

Fields

§transfer_id: String
§

SaveCommit

Fields

§transfer_id: String
§submitted_revision: u64
§expected_version: Option<String>
§

SaveCommitOwned

Fields

§transfer_id: String
§lease_id: String
§submitted_revision: u64
§expected_version: Option<String>
§

Inspect

Fields

§operation_id: String
§

TerminalOutput

Fields

§session_id: String
§

Cancel

Fields

§request_id: u64
§

Error

Fields

§code: String
§safe_message: String

Trait Implementations§

Source§

impl Clone for Message

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 Message

Source§

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

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

impl<'de> Deserialize<'de> for Message

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 Eq for Message

Source§

impl PartialEq for Message

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 Message

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 Message

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