Enum shpool_protocol::AttachStatus
source · 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 moresource§impl Debug for AttachStatus
impl Debug for AttachStatus
source§impl Default for AttachStatus
impl Default for AttachStatus
source§impl<'de> Deserialize<'de> for AttachStatus
impl<'de> Deserialize<'de> for AttachStatus
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>,
source§impl PartialEq for AttachStatus
impl PartialEq for AttachStatus
source§impl Serialize for AttachStatus
impl Serialize for AttachStatus
impl Eq for AttachStatus
impl StructuralPartialEq for AttachStatus
Auto Trait Implementations§
impl Freeze for AttachStatus
impl RefUnwindSafe for AttachStatus
impl Send for AttachStatus
impl Sync for AttachStatus
impl Unpin for AttachStatus
impl UnwindSafe for AttachStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)