pub enum AttachStatus {
Attached {
warnings: Vec<String>,
},
Created {
warnings: Vec<String>,
},
Busy,
Forbidden(String),
UnexpectedError(String),
}
Expand description
AttachStatus indicates what happened during an attach attempt.
Variants§
Attached
Attached indicates that there was an existing shell session with
the given name, and shpool attach
successfully connected to it.
NOTE: warnings is not currently used, but it used to be, and we might want it in the future, so it is not worth breaking the protocol over.
Created
Created indicates that there was no existing shell session with the
given name, so shpool
created a new one.
NOTE: warnings is not currently used, see above.
Busy
Busy indicates that there is an existing shell session with the given name, but another shpool session is currently connected to it, so the connection attempt was rejected.
Forbidden(String)
Forbidden indicates that the daemon has rejected the connection attempt for security reasons.
UnexpectedError(String)
Some unexpected error
Trait Implementations§
Source§impl Clone for AttachStatus
impl Clone for AttachStatus
Source§fn clone(&self) -> AttachStatus
fn clone(&self) -> AttachStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more