pub struct Agent {
pub state: Arc<Mutex<Value>>,
pub error: Arc<Mutex<Option<Value>>>,
pub watches: Mutex<Vec<(Value, Value)>>,
}Expand description
A Clojure agent — asynchronous state update queue (stub: not yet implemented).
Fields§
§state: Arc<Mutex<Value>>Current state.
error: Arc<Mutex<Option<Value>>>Last error.
watches: Mutex<Vec<(Value, Value)>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Agent
impl !Send for Agent
impl !Sync for Agent
impl RefUnwindSafe for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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