Struct Client
struct Client {
hostname: String,
window_handle: HWND,
process_handle: HANDLE,
process_id: u32,
state_sender: Sender<ClientState>,
highlight_sender: Sender<bool>,
tile_index: usize,
}Expand description
Representation of a client
Fields§
§hostname: StringHostname the client is connect to (or supposed to connect to).
window_handle: HWNDWindow handle to the clients console window.
process_handle: HANDLEProcess handle to the client process.
process_id: u32Process id of the client process.
Used by the pipe server task to correlate which client has connected to it, via a handshake over the named pipe.
state_sender: Sender<ClientState>Authoritative source for this client’s ClientState.
The daemon broadcasts new state values through the [watch::Sender];
the assigned pipe-server task subscribes upon successful PID
correlation and forwards every change to the client over the named
pipe. [watch::Sender] is itself Clone, so cloning a Client
produces another sender that drives the same channel.
highlight_sender: Sender<bool>Authoritative source for this client’s highlight flag, set while
the client is the daemon’s currently selected submenu client.
Visual only; input gating uses Client::state_sender.
tile_index: usizeIndex passed to arrange_client_window when this client’s
on-screen position was last computed. Survives
Clients::retain so the submenu navigation grid keeps
matching the visible layout until the next retile.
Trait Implementations§
Auto Trait Implementations§
impl !Sync for Client
impl Freeze for Client
impl RefUnwindSafe for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.