pub struct Shared {
pub root: PathBuf,
pub token: String,
pub port: u16,
pub hub: Arc<Hub>,
pub closing: Receiver<bool>,
pub device: Arc<Mutex<Option<(String, String, Pending)>>>,
}Expand description
The host’s state.
Fields§
§root: PathBufThe project.
token: StringThe per-start token.
port: u16The port it listens on.
hub: Arc<Hub>Jobs and events.
closing: Receiver<bool>Turns true when the host stops: open event streams end with it.
device: Arc<Mutex<Option<(String, String, Pending)>>>A GitHub sign-in waiting for the person to enter its code: the host, the app and the pending device code — never sent to the page.
Trait Implementations§
Auto Trait Implementations§
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