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
ProofLookupReady
ProofReady
ProofObserveBegin
ProofApprovalsBegin
ProofOutputBegin
ProofPrepared
ProofExisting
ProofMissing
ProofCancel
ProofRelease
ProofLookupChunk
ProofLookupEnd
ProofOriginalChunk
ProofOriginalEnd
ProofApprovalsChunk
ProofApprovalsEnd
ProofAliasesChunk
ProofAliasesEnd
ProofOutputChunk
ProofOutputEnd
Hello
Welcome
Fields
Register
Fields
Release
Authentication
Ack
Credit
Read
Receipt
Fields
§
state: ReceiptState§
saved_version: Option<WireVersion>§
failure: Option<WireFailure>§
observed: WireObservationCancellation
Fields
§
outcome: CancelOutcomeServiceCall
ServiceEvent
FileList
ReadBegin
ReadChunk
ReadEnd
UploadBegin
UploadChunk
UploadEnd
CreateCommit
SaveCommit
SaveCommitOwned
Fields
Inspect
TerminalOutput
Cancel
Error
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Forget for Message
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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
Mutably borrows from an owned value. Read more