Struct nu_engine::ShellManager [−][src]
pub struct ShellManager {
pub current_shell: Arc<AtomicUsize>,
pub shells: Arc<Mutex<Vec<Box<dyn Shell + Send>>>>,
}Fields
current_shell: Arc<AtomicUsize>shells: Arc<Mutex<Vec<Box<dyn Shell + Send>>>>Implementations
impl ShellManager[src]
impl ShellManager[src]pub fn basic() -> ShellManager[src]
pub fn enter_script_mode(&self) -> Result<(), Error>[src]
pub fn insert_at_current(&self, shell: Box<dyn Shell + Send>)[src]
pub fn current_shell(&self) -> usize[src]
pub fn remove_at_current(&self)[src]
pub fn is_empty(&self) -> bool[src]
pub fn is_interactive(&self) -> bool[src]
pub fn path(&self) -> String[src]
pub fn pwd(
&self,
args: EvaluatedCommandArgs
) -> Result<ActionStream, ShellError>[src]
&self,
args: EvaluatedCommandArgs
) -> Result<ActionStream, ShellError>
pub fn set_path(&self, path: String)[src]
pub fn open(
&self,
full_path: &Path,
name: Span,
with_encoding: Option<&'static Encoding>
) -> Result<Box<dyn Iterator<Item = Result<StringOrBinary, ShellError>> + Send + Sync>, ShellError>[src]
&self,
full_path: &Path,
name: Span,
with_encoding: Option<&'static Encoding>
) -> Result<Box<dyn Iterator<Item = Result<StringOrBinary, ShellError>> + Send + Sync>, ShellError>
pub fn save(
&self,
full_path: &Path,
save_data: &[u8],
name: Span
) -> Result<OutputStream, ShellError>[src]
&self,
full_path: &Path,
save_data: &[u8],
name: Span
) -> Result<OutputStream, ShellError>
pub fn next(&self)[src]
pub fn prev(&self)[src]
pub fn homedir(&self) -> Option<PathBuf>[src]
pub fn ls(
&self,
args: LsArgs,
name: Tag,
ctrl_c: Arc<AtomicBool>
) -> Result<ActionStream, ShellError>[src]
&self,
args: LsArgs,
name: Tag,
ctrl_c: Arc<AtomicBool>
) -> Result<ActionStream, ShellError>
pub fn cd(&self, args: CdArgs, name: Tag) -> Result<ActionStream, ShellError>[src]
pub fn cp(&self, args: CopyArgs, name: Tag) -> Result<ActionStream, ShellError>[src]
pub fn rm(
&self,
args: RemoveArgs,
name: Tag
) -> Result<ActionStream, ShellError>[src]
&self,
args: RemoveArgs,
name: Tag
) -> Result<ActionStream, ShellError>
pub fn mkdir(
&self,
args: MkdirArgs,
name: Tag
) -> Result<ActionStream, ShellError>[src]
&self,
args: MkdirArgs,
name: Tag
) -> Result<ActionStream, ShellError>
pub fn mv(&self, args: MvArgs, name: Tag) -> Result<ActionStream, ShellError>[src]
Trait Implementations
impl Clone for ShellManager[src]
impl Clone for ShellManager[src]fn clone(&self) -> ShellManager[src]
fn clone(&self) -> ShellManager[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for ShellManager[src]
impl Debug for ShellManager[src]impl Default for ShellManager[src]
impl Default for ShellManager[src]fn default() -> ShellManager[src]
fn default() -> ShellManager[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ShellManager
impl Send for ShellManager
impl Sync for ShellManager
impl Unpin for ShellManager
impl !UnwindSafe for ShellManager
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> SpannedItem for T[src]
impl<T> SpannedItem for T[src]impl<T> TaggedItem for T[src]
impl<T> TaggedItem for T[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,