pub enum AttachState {
Ready,
TakenOver,
Busy,
Ineligible,
NoSession,
Reviewed,
Full,
Unknown,
}Expand description
Where a conversation stands for the owner’s takeover of it in its
agent’s own terminal (attach).
Variants§
Ready
It is idle: attach takes it over.
TakenOver
It is taken over: attach attaches to its terminal, taking the
hold from any other client.
Busy
A turn runs, or turns wait: attach is refused. With interrupt,
when AttachOffer::interrupt says so, it stops the running turn
first.
Ineligible
Its agent’s terminal is never offered (only an agent whose terminal asks no approval is).
NoSession
It has no session of the agent’s own to open yet: its first turn has not ended.
Reviewed
A reviewed job holds it.
Full
As many takeovers as may run at once already run.
Unknown
A state this client does not know.
Implementations§
Trait Implementations§
Source§impl Clone for AttachState
impl Clone for AttachState
impl Copy for AttachState
Source§impl Debug for AttachState
impl Debug for AttachState
Source§impl<'de> Deserialize<'de> for AttachState
impl<'de> Deserialize<'de> for AttachState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttachState
Source§impl Hash for AttachState
impl Hash for AttachState
Source§impl PartialEq for AttachState
impl PartialEq for AttachState
Source§impl Serialize for AttachState
impl Serialize for AttachState
impl StructuralPartialEq for AttachState
Auto Trait Implementations§
impl Freeze for AttachState
impl RefUnwindSafe for AttachState
impl Send for AttachState
impl Sync for AttachState
impl Unpin for AttachState
impl UnsafeUnpin for AttachState
impl UnwindSafe for AttachState
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