Struct ruci::GuiToEngineUciConnectionGo
source · pub struct GuiToEngineUciConnectionGo<Stop>{
pub stop: Stop,
pub info_receiver: Receiver<Box<InfoMessage>>,
pub thread: JoinHandle<Result<BestMoveMessage, GuiToEngineUciConnectionGoError>>,
}Expand description
Returned by the EngineConnection::go_async function.
Fields§
§stop: StopCalling this function sends a “stop” signal to the thread
and also sends the stop message to the engine.
This function does not wait for the self.thread to finish.
§Errors
GuiToEngineUciConnectionGoError::Poison: theEngineConnectionmutex was poisoned.GuiToEngineUciConnectionGoError::Io: seeUciConnection::send_message.
info_receiver: Receiver<Box<InfoMessage>>All info messages will be sent through this receiver.
thread: JoinHandle<Result<BestMoveMessage, GuiToEngineUciConnectionGoError>>This is the handle to the thread, use it to wait for the bestmove message.
§Errors
GuiToEngineUciConnectionGoError::Poison: theEngineConnectionmutex was poisoned.GuiToEngineUciConnectionGoError::Io(io::ErrorKind::ConnectionAborted): theself.stopfunction was called, and the thread aborted.GuiToEngineUciConnectionGoError::Io: write/read IO errors.
Trait Implementations§
Auto Trait Implementations§
impl<Stop> Freeze for GuiToEngineUciConnectionGo<Stop>where
Stop: Freeze,
impl<Stop> !RefUnwindSafe for GuiToEngineUciConnectionGo<Stop>
impl<Stop> Send for GuiToEngineUciConnectionGo<Stop>where
Stop: Send,
impl<Stop> !Sync for GuiToEngineUciConnectionGo<Stop>
impl<Stop> Unpin for GuiToEngineUciConnectionGo<Stop>where
Stop: Unpin,
impl<Stop> !UnwindSafe for GuiToEngineUciConnectionGo<Stop>
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