pub struct CodexDaemon { /* private fields */ }Implementations§
Source§impl CodexDaemon
impl CodexDaemon
pub fn new(socket_path: impl Into<PathBuf>) -> Self
pub fn with_extra_arg(self, arg: impl Into<String>) -> Self
pub fn with_config( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn socket_path(&self) -> &Path
pub fn listen_url(&self) -> String
pub fn app_server_args(&self) -> Vec<String>
pub fn start_args(&self) -> Vec<String>
pub fn stop_args(&self) -> Vec<String>
pub async fn connect(&self, options: SessionOptions) -> Result<CodexSession>
Trait Implementations§
Source§impl Clone for CodexDaemon
impl Clone for CodexDaemon
Source§fn clone(&self) -> CodexDaemon
fn clone(&self) -> CodexDaemon
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodexDaemon
impl RefUnwindSafe for CodexDaemon
impl Send for CodexDaemon
impl Sync for CodexDaemon
impl Unpin for CodexDaemon
impl UnsafeUnpin for CodexDaemon
impl UnwindSafe for CodexDaemon
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