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
) -> 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 ShellManagerimpl Send for ShellManagerimpl Sync for ShellManagerimpl Unpin for ShellManagerimpl !UnwindSafe for ShellManagerBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V