pub struct LoadPackageResponse {
pub workflow_type: String,
pub content_hash: String,
pub deployed_entry_module: String,
pub entry_function: String,
pub freshly_loaded: bool,
pub route_changed: bool,
pub superseded_versions: Vec<String>,
pub auto_workers: Vec<AutoWorker>,
}Expand description
Outcome of a package load. Idempotency is specified behavior: re-sending
the same archive succeeds with freshly_loaded = false, and
route_changed reports whether the call re-pointed routing.
Fields§
§workflow_type: String§content_hash: StringTextual ContentHash — the version identifier everywhere on the wire.
deployed_entry_module: String§entry_function: String§freshly_loaded: boolFalse = idempotent re-load (the hash was already resident).
route_changed: boolFalse = the hash was already route-active (full no-op).
superseded_versions: Vec<String>Every OTHER version of this type still resident and no longer routed.
Deploy does not remove them and never has: they stay loaded, stay in the
durable package table, and stay part of worker-admission contract
checking until an operator unloads them. Naming them here is what turns
aion unload <workflow-type> <content-hash> from a verb nobody knows
about into the obvious next step. Empty on a first deploy, and empty
once a deploy loop prunes as it goes.
auto_workers: Vec<AutoWorker>What the server did about the built-in agent workers this document’s
worker blocks declare, one entry per declaring task queue. EMPTY when the
document declares no harness section, which is the ordinary case and the
reason the field is repeated rather than optional: “nothing was asked for”
and “something was asked for and refused” must not look alike.
Trait Implementations§
Source§impl Clone for LoadPackageResponse
impl Clone for LoadPackageResponse
Source§fn clone(&self) -> LoadPackageResponse
fn clone(&self) -> LoadPackageResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoadPackageResponse
impl Debug for LoadPackageResponse
Source§impl Default for LoadPackageResponse
impl Default for LoadPackageResponse
Source§impl<'de> Deserialize<'de> for LoadPackageResponse
impl<'de> Deserialize<'de> for LoadPackageResponse
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 Message for LoadPackageResponse
impl Message for LoadPackageResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for LoadPackageResponse
impl PartialEq for LoadPackageResponse
Source§impl Serialize for LoadPackageResponse
impl Serialize for LoadPackageResponse
impl StructuralPartialEq for LoadPackageResponse
Auto Trait Implementations§
impl Freeze for LoadPackageResponse
impl RefUnwindSafe for LoadPackageResponse
impl Send for LoadPackageResponse
impl Sync for LoadPackageResponse
impl Unpin for LoadPackageResponse
impl UnsafeUnpin for LoadPackageResponse
impl UnwindSafe for LoadPackageResponse
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request