Struct terminal2::TerminalBuilder
source · pub struct TerminalBuilder { /* private fields */ }
Implementations§
source§impl TerminalBuilder
impl TerminalBuilder
pub fn new( working_directory: Option<PathBuf>, shell: Shell, env: HashMap<String, String>, blink_settings: Option<TerminalBlink>, alternate_scroll: AlternateScroll, window: AnyWindowHandle, color_for_index: impl Fn(usize, &mut AppContext) -> Hsla + Send + Sync + 'static ) -> Result<TerminalBuilder>
pub fn subscribe(self, cx: &mut ModelContext<'_, Terminal>) -> Terminal
Auto Trait Implementations§
impl !RefUnwindSafe for TerminalBuilder
impl Send for TerminalBuilder
impl Sync for TerminalBuilder
impl Unpin for TerminalBuilder
impl !UnwindSafe for TerminalBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more