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]

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 path(&self) -> String[src]

pub fn pwd(
    &self,
    args: EvaluatedWholeStreamCommandArgs
) -> Result<OutputStream, ShellError>
[src]

pub fn set_path(&self, path: String)[src]

pub fn open(
    &self,
    full_path: &Path,
    name: Span,
    with_encoding: Option<&'static Encoding>
) -> Result<impl Stream<Item = Result<StringOrBinary, ShellError>> + Send + 'static, ShellError>
[src]

pub fn save(
    &self,
    full_path: &Path,
    save_data: &[u8],
    name: Span
) -> Result<OutputStream, ShellError>
[src]

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<OutputStream, ShellError>
[src]

pub fn cd(&self, args: CdArgs, name: Tag) -> Result<OutputStream, ShellError>[src]

pub fn cp(&self, args: CopyArgs, name: Tag) -> Result<OutputStream, ShellError>[src]

pub fn rm(
    &self,
    args: RemoveArgs,
    name: Tag
) -> Result<OutputStream, ShellError>
[src]

pub fn mkdir(
    &self,
    args: MkdirArgs,
    name: Tag
) -> Result<OutputStream, ShellError>
[src]

pub fn mv(&self, args: MvArgs, name: Tag) -> Result<OutputStream, ShellError>[src]

Trait Implementations

impl Clone for ShellManager[src]

impl Debug for ShellManager[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SpannedItem for T[src]

impl<T> TaggedItem for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,