pub enum SdkOperation {
Discover,
Load,
Start,
Resume,
Input,
Events,
Interrupt,
Steer,
Respond,
Export,
Close,
}Expand description
One operation owned by the SDK facade.
Variants§
Discover
Discover persisted sessions.
Load
Load one persisted session without modifying it.
Start
Start a harness-native runtime.
Resume
Resume a harness-native persisted runtime.
Input
Send input to an SDK-owned runtime connection.
Events
Poll canonical runtime events.
Interrupt
Interrupt the active turn.
Steer
Queue guidance at the next model-loop boundary.
Respond
Answer a typed runtime request.
Export
Export a loaded session through a native serializer.
Close
Close an SDK-owned runtime connection.
Implementations§
Source§impl SdkOperation
impl SdkOperation
Sourcepub const ALL: [SdkOperation; 11]
pub const ALL: [SdkOperation; 11]
Complete v1 operation inventory in stable declaration order.
Sourcepub const fn method(self) -> Option<&'static str>
pub const fn method(self) -> Option<&'static str>
Canonical harness.v1 method used by JSON transports, when the
operation is request/response rather than a subscription poll.
Sourcepub fn from_method(method: &str) -> Option<SdkOperation>
pub fn from_method(method: &str) -> Option<SdkOperation>
Resolve one canonical method without accepting transport aliases.
Sourcepub const fn action_name(self) -> &'static str
pub const fn action_name(self) -> &'static str
Stable action spelling used by capability and error projections.
Sourcepub fn from_action_name(action: &str) -> Option<SdkOperation>
pub fn from_action_name(action: &str) -> Option<SdkOperation>
Resolve a stable action spelling.
Trait Implementations§
Source§impl Clone for SdkOperation
impl Clone for SdkOperation
Source§fn clone(&self) -> SdkOperation
fn clone(&self) -> SdkOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SdkOperation
Source§impl Debug for SdkOperation
impl Debug for SdkOperation
Source§impl<'de> Deserialize<'de> for SdkOperation
impl<'de> Deserialize<'de> for SdkOperation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SdkOperation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SdkOperation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for SdkOperation
Source§impl Hash for SdkOperation
impl Hash for SdkOperation
Source§impl PartialEq for SdkOperation
impl PartialEq for SdkOperation
Source§impl Serialize for SdkOperation
impl Serialize for SdkOperation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SdkOperation
Auto Trait Implementations§
impl Freeze for SdkOperation
impl RefUnwindSafe for SdkOperation
impl Send for SdkOperation
impl Sync for SdkOperation
impl Unpin for SdkOperation
impl UnsafeUnpin for SdkOperation
impl UnwindSafe for SdkOperation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.