pub struct CommandContext {
pub command_path: Vec<String>,
pub app_state: Rc<Extensions>,
pub extensions: Extensions,
pub stream: EntryStream,
}Fields§
§command_path: Vec<String>§app_state: Rc<Extensions>§extensions: Extensions§stream: EntryStreamImplementations§
Source§impl CommandContext
impl CommandContext
pub fn new(command_path: Vec<String>, app_state: Rc<Extensions>) -> Self
pub fn with_stream(self, stream: EntryStream) -> Self
Sourcepub fn stream(&self) -> &EntryStream
pub fn stream(&self) -> &EntryStream
Live under ndjson, discarding in every other mode.
Trait Implementations§
Source§impl Debug for CommandContext
impl Debug for CommandContext
Auto Trait Implementations§
impl !RefUnwindSafe for CommandContext
impl !Send for CommandContext
impl !Sync for CommandContext
impl !UnwindSafe for CommandContext
impl Freeze for CommandContext
impl Unpin for CommandContext
impl UnsafeUnpin for CommandContext
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