Skip to main content

ControlProtocol

Struct ControlProtocol 

Source
pub struct ControlProtocol;
Expand description

Generation-one hello/welcome and operation metadata.

Trait Implementations§

Source§

impl Protocol for ControlProtocol

Source§

type Ready = ControlReady

Shared immutable metadata negotiated during setup.
Source§

fn establish( stream: BoxTransport, options: ConnectOptions, ) -> BoxFuture<'static, ClientResult<Established<Self::Ready>>>

Consume an owned stream and preserve any prefetched bytes in the result.
Source§

fn prepare(ready: &Self::Ready, wire_name: &str) -> ClientResult<SendMetadata>

Validate availability and select metadata for a named outbound message.
Source§

const REUSE_IDS: bool = true

Whether terminal completion permits reusing a correlation ID.
Source§

impl Request<ControlProtocol> for GetCapabilities

Source§

type Response = Capabilities

Checked operation result, independent of SDK domain behavior.
Source§

type Error = ControlClientError

Application error that can also retain a local transport failure.
Source§

fn message(&self) -> ControlClientResult<EncodedMessage>

Encode the prepared request without performing I/O.
Source§

fn decode(&self, response: Message) -> ControlClientResult<Self::Response>

Check the expected terminal response name, generation, and payload.
Source§

impl Request<ControlProtocol> for GetMemoryState

Source§

type Response = MemoryState

Checked operation result, independent of SDK domain behavior.
Source§

type Error = ControlClientError

Application error that can also retain a local transport failure.
Source§

fn message(&self) -> ControlClientResult<EncodedMessage>

Encode the prepared request without performing I/O.
Source§

fn decode(&self, response: Message) -> ControlClientResult<Self::Response>

Check the expected terminal response name, generation, and payload.
Source§

impl Request<ControlProtocol> for SetMemoryTarget

Source§

type Response = MemoryState

Checked operation result, independent of SDK domain behavior.
Source§

type Error = ControlClientError

Application error that can also retain a local transport failure.
Source§

fn message(&self) -> ControlClientResult<EncodedMessage>

Encode the prepared request without performing I/O.
Source§

fn decode(&self, response: Message) -> ControlClientResult<Self::Response>

Check the expected terminal response name, generation, and payload.
Source§

impl Request<ControlProtocol> for GetCpuState

Source§

type Response = CpuState

Checked operation result, independent of SDK domain behavior.
Source§

type Error = ControlClientError

Application error that can also retain a local transport failure.
Source§

fn message(&self) -> ControlClientResult<EncodedMessage>

Encode the prepared request without performing I/O.
Source§

fn decode(&self, response: Message) -> ControlClientResult<Self::Response>

Check the expected terminal response name, generation, and payload.
Source§

impl Request<ControlProtocol> for SetCpuTarget

Source§

type Response = CpuState

Checked operation result, independent of SDK domain behavior.
Source§

type Error = ControlClientError

Application error that can also retain a local transport failure.
Source§

fn message(&self) -> ControlClientResult<EncodedMessage>

Encode the prepared request without performing I/O.
Source§

fn decode(&self, response: Message) -> ControlClientResult<Self::Response>

Check the expected terminal response name, generation, and payload.
Source§

impl Request<ControlProtocol> for UpdateSecrets

Source§

type Response = SecretsResult

Checked operation result, independent of SDK domain behavior.
Source§

type Error = ControlClientError

Application error that can also retain a local transport failure.
Source§

fn message(&self) -> ControlClientResult<EncodedMessage>

Encode the prepared request without performing I/O.
Source§

fn decode(&self, response: Message) -> ControlClientResult<Self::Response>

Check the expected terminal response name, generation, and payload.

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