pub struct ExecContext {
pub path: String,
pub entry: Arc<Entry>,
pub format: Format,
pub json: bool,
pub out: Arc<Mutex<Box<dyn Write + Send>>>,
}Expand description
一次叶子命令执行的只读快照,交给 Execute 中间件(use_mw)。
Fields§
§path: String点分注册名,如 user.add。
entry: Arc<Entry>命令元数据(Hints、InputSchema、OutputSchema)。
format: Format生效的输出格式(spec §10.7;未调 next 自行渲染时可参考)。
json: bool机器格式(json/jsonl)——保留的兼容字段,等价 format.is_machine()。
out: Arc<Mutex<Box<dyn Write + Send>>>结果的输出目标(Arc
Auto Trait Implementations§
impl !RefUnwindSafe for ExecContext
impl !UnwindSafe for ExecContext
impl Freeze for ExecContext
impl Send for ExecContext
impl Sync for ExecContext
impl Unpin for ExecContext
impl UnsafeUnpin for ExecContext
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more