Struct nu_engine::filesystem::filesystem_shell::FilesystemShell
source · [−]pub struct FilesystemShell { /* private fields */ }Implementations
sourceimpl FilesystemShell
impl FilesystemShell
pub fn basic(mode: FilesystemShellMode) -> FilesystemShell
pub fn with_location(
path: String,
mode: FilesystemShellMode
) -> Result<FilesystemShell, Error>
Trait Implementations
sourceimpl Clone for FilesystemShell
impl Clone for FilesystemShell
sourceimpl Debug for FilesystemShell
impl Debug for FilesystemShell
sourceimpl Shell for FilesystemShell
impl Shell for FilesystemShell
fn name(&self) -> String
fn homedir(&self) -> Option<PathBuf>
fn ls(
&self,
_: LsArgs,
name_tag: Tag,
ctrl_c: Arc<AtomicBool>
) -> Result<ActionStream, ShellError>
fn cd(&self, args: CdArgs, name: Tag) -> Result<ActionStream, ShellError>
fn cp(
&self,
_: CopyArgs,
name: Tag,
path: &str
) -> Result<ActionStream, ShellError>
fn mkdir(
&self,
_: MkdirArgs,
name: Tag,
path: &str
) -> Result<OutputStream, ShellError>
fn mv(
&self,
_: MvArgs,
_name: Tag,
path: &str
) -> Result<ActionStream, ShellError>
fn rm(
&self,
_: RemoveArgs,
name: Tag,
path: &str
) -> Result<ActionStream, ShellError>
fn path(&self) -> String
fn pwd(&self, args: CommandArgs) -> Result<ActionStream, ShellError>
fn set_path(&mut self, path: String)
fn open(
&self,
path: &Path,
name: Span,
with_encoding: Option<&'static Encoding>
) -> Result<Box<dyn Iterator<Item = Result<StringOrBinary, ShellError>> + Sync + Send>, ShellError>
fn save(
&mut self,
full_path: &Path,
save_data: &[u8],
name: Span,
append: bool
) -> Result<OutputStream, ShellError>
fn is_interactive(&self) -> bool
Auto Trait Implementations
impl RefUnwindSafe for FilesystemShell
impl Send for FilesystemShell
impl Sync for FilesystemShell
impl Unpin for FilesystemShell
impl UnwindSafe for FilesystemShell
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> SpannedItem for T
impl<T> SpannedItem for T
sourceimpl<T> TaggedItem for T
impl<T> TaggedItem for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more