#[repr(u8)]pub enum Role {
Writer = 1,
Watcher = 2,
Monitor = 3,
}Expand description
Client role when connecting to a keepty broker.
Roles are negotiated in the Hello handshake — the client declares what it wants to do, and the broker enforces access accordingly.
Variants§
Writer = 1
Exclusive control: can send input and resize the terminal. Only one Writer at a time per broker session.
Watcher = 2
Read-only: receives the output stream but cannot send input. Multiple Watchers can connect simultaneously.
Monitor = 3
Server-side observation: like Watcher, but intended for programmatic screen analysis (agents, health checks).
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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