pub struct ChildBridge<'a> {
pub up: &'a Arc<Mutex<Stdout>>,
pub replies: &'a Arc<Replies>,
pub cancel: &'a Arc<AtomicBool>,
}Expand description
The process bridge: frames over the control channel.
Fields§
§up: &'a Arc<Mutex<Stdout>>§replies: &'a Arc<Replies>§cancel: &'a Arc<AtomicBool>Trait Implementations§
Source§impl Bridge for ChildBridge<'_>
impl Bridge for ChildBridge<'_>
Source§fn tool_request(
&mut self,
name: &str,
args: &Value,
deadline: Instant,
) -> Option<(Value, bool)>
fn tool_request( &mut self, name: &str, args: &Value, deadline: Instant, ) -> Option<(Value, bool)>
Execute an internal tool via the supervisor.
None = no answer
(cancelled / channel gone / deadline).Source§fn budget_request(
&mut self,
estimate: u64,
deadline: Instant,
) -> Option<BudgetReply>
fn budget_request( &mut self, estimate: u64, deadline: Instant, ) -> Option<BudgetReply>
Ask for budget admission.
None = no answer.fn cancelled(&self) -> bool
Auto Trait Implementations§
impl<'a> Freeze for ChildBridge<'a>
impl<'a> RefUnwindSafe for ChildBridge<'a>
impl<'a> Send for ChildBridge<'a>
impl<'a> Sync for ChildBridge<'a>
impl<'a> Unpin for ChildBridge<'a>
impl<'a> UnsafeUnpin for ChildBridge<'a>
impl<'a> UnwindSafe for ChildBridge<'a>
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