pub struct RingAction(/* private fields */);Expand description
An action that is valid inside an Actions Ring.
Construction and deserialization reject actions that would make the ring’s
state ambiguous (None) or recursively invoke another ring
(ShowActionsRing).
Implementations§
Source§impl RingAction
impl RingAction
Sourcepub fn new(action: Action) -> Result<Self, RingActionError>
pub fn new(action: Action) -> Result<Self, RingActionError>
Validate and wrap an ordinary action for placement in a ring.
Sourcepub fn action(&self) -> &Action
pub fn action(&self) -> &Action
The action the agent should execute when this slot is activated.
Sourcepub fn into_action(self) -> Action
pub fn into_action(self) -> Action
Consume the wrapper and return its action.
Trait Implementations§
Source§impl Clone for RingAction
impl Clone for RingAction
Source§fn clone(&self) -> RingAction
fn clone(&self) -> RingAction
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 moreSource§impl Debug for RingAction
impl Debug for RingAction
Source§impl<'de> Deserialize<'de> for RingAction
impl<'de> Deserialize<'de> for RingAction
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 RingAction
Source§impl Hash for RingAction
impl Hash for RingAction
Source§impl PartialEq for RingAction
impl PartialEq for RingAction
Source§impl Serialize for RingAction
impl Serialize for RingAction
impl StructuralPartialEq for RingAction
Auto Trait Implementations§
impl Freeze for RingAction
impl RefUnwindSafe for RingAction
impl Send for RingAction
impl Sync for RingAction
impl Unpin for RingAction
impl UnsafeUnpin for RingAction
impl UnwindSafe for RingAction
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.