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
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>
pub fn save(
&self,
full_path: &Path,
save_data: &[u8],
name: Span,
append: bool
) -> Result<OutputStream, ShellError>
pub fn ls(
&self,
args: LsArgs,
name: Tag,
ctrl_c: Arc<AtomicBool>
) -> Result<ActionStream, ShellError>
Trait Implementations
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
Mutably borrows from an owned value. Read more