pub enum McpLifecycle {
Eager,
Lazy,
Manual,
}Expand description
Startup lifecycle policy for an MCP server.
Controls when gglib automatically starts the server process.
Variants§
Eager
Start the server at host initialisation (proxy startup, GUI launch, web server boot). Use for servers that are always needed or have a slow cold start.
Lazy
Start the server on first tool use; keep it running until the host exits. This is the default: no background process until something actually needs the server.
Manual
Never start automatically. The server must be started explicitly via the
CLI (gglib mcp start), the REST API, or the GUI.
Trait Implementations§
Source§impl Clone for McpLifecycle
impl Clone for McpLifecycle
Source§fn clone(&self) -> McpLifecycle
fn clone(&self) -> McpLifecycle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpLifecycle
impl Debug for McpLifecycle
Source§impl Default for McpLifecycle
impl Default for McpLifecycle
Source§fn default() -> McpLifecycle
fn default() -> McpLifecycle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpLifecycle
impl<'de> Deserialize<'de> for McpLifecycle
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
Source§impl Display for McpLifecycle
impl Display for McpLifecycle
Source§impl FromStr for McpLifecycle
impl FromStr for McpLifecycle
Source§impl PartialEq for McpLifecycle
impl PartialEq for McpLifecycle
Source§impl Serialize for McpLifecycle
impl Serialize for McpLifecycle
impl Copy for McpLifecycle
impl Eq for McpLifecycle
impl StructuralPartialEq for McpLifecycle
Auto Trait Implementations§
impl Freeze for McpLifecycle
impl RefUnwindSafe for McpLifecycle
impl Send for McpLifecycle
impl Sync for McpLifecycle
impl Unpin for McpLifecycle
impl UnwindSafe for McpLifecycle
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