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 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<Self>
pub fn from_method(method: &str) -> Option<Self>
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<Self>
pub fn from_action_name(action: &str) -> Option<Self>
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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<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 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
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.