pub struct IdeServer {
pub port: u16,
pub calls: Receiver<IdeCall>,
/* private fields */
}Expand description
The running server. Dropping it removes the lock file, which is what hides this
Cellix from /ide.
Fields§
§port: u16§calls: Receiver<IdeCall>Implementations§
Source§impl IdeServer
impl IdeServer
pub fn start(root: &Path) -> Result<Self>
Sourcepub fn start_kept(root: &Path, kept: &Path) -> Result<Self>
pub fn start_kept(root: &Path, kept: &Path) -> Result<Self>
Starts on the port and token noted in kept, if it can, and notes what it used. An
agent that outlived the last Cellix was started pointing at that port, so this is the
only way it can find the next one.
Sourcepub fn notify(&self, method: &str, params: Value)
pub fn notify(&self, method: &str, params: Value)
Tells every connected client something changed.
pub fn connected(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Sync for IdeServer
impl Forget for IdeServer
impl Freeze for IdeServer
impl Move for IdeServer
impl RefUnwindSafe for IdeServer
impl Send for IdeServer
impl Unpin for IdeServer
impl UnsafeUnpin for IdeServer
impl UnwindSafe for IdeServer
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