[−][src]Struct rusty_junctions::types::ControllerHandle
Handle to a Junction
's underlying Controller
.
This struct carries a JoinHandle
to the thread that the Controller
of
a Junction
is running in. It allows for the Controller
and its thread
to be stopped gracefully at any point.
Methods
impl ControllerHandle
[src]
pub fn thread(&self) -> Option<&Thread>
[src]
Extracts a handle to the underlying thread.
pub fn stop(&mut self)
[src]
Request the Controller
to stop gracefully, then join its thread.
Panics
Panics if it was unable to send shut-down request to the control thread.
Auto Trait Implementations
impl !RefUnwindSafe for ControllerHandle
impl Send for ControllerHandle
impl !Sync for ControllerHandle
impl Unpin for ControllerHandle
impl !UnwindSafe for ControllerHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,