pub struct OxicodeHostAdapter {
pub workspace_name: String,
pub workspace_root: Option<PathBuf>,
pub settings: Arc<RwLock<Settings>>,
}Expand description
Adapts oxicode’s application state to vtcode-ui’s host contract.
Fields§
§workspace_name: String§workspace_root: Option<PathBuf>§settings: Arc<RwLock<Settings>>Implementations§
Trait Implementations§
Source§impl HostAdapter for OxicodeHostAdapter
impl HostAdapter for OxicodeHostAdapter
Source§fn session_defaults(&self) -> HostSessionDefaults
fn session_defaults(&self) -> HostSessionDefaults
Provide host-specific defaults for TUI session startup.
Source§fn slash_commands(&self) -> Vec<SlashCommandItem>
fn slash_commands(&self) -> Vec<SlashCommandItem>
Provide slash command metadata to render in the command palette.
Source§fn non_interactive_hint(&self) -> Option<String>
fn non_interactive_hint(&self) -> Option<String>
Optional hint shown when interactive TTY requirements are not met.
Source§impl NotificationProvider for OxicodeHostAdapter
impl NotificationProvider for OxicodeHostAdapter
fn set_terminal_focused(&self, _focused: bool)
Source§impl ThemeProvider for OxicodeHostAdapter
impl ThemeProvider for OxicodeHostAdapter
fn available_themes(&self) -> Vec<String>
fn active_theme_name(&self) -> Option<String>
Source§impl WorkspaceInfoProvider for OxicodeHostAdapter
impl WorkspaceInfoProvider for OxicodeHostAdapter
fn workspace_name(&self) -> String
fn workspace_root(&self) -> Option<PathBuf>
Auto Trait Implementations§
impl !RefUnwindSafe for OxicodeHostAdapter
impl !UnwindSafe for OxicodeHostAdapter
impl Freeze for OxicodeHostAdapter
impl Send for OxicodeHostAdapter
impl Sync for OxicodeHostAdapter
impl Unpin for OxicodeHostAdapter
impl UnsafeUnpin for OxicodeHostAdapter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more