pub enum OwnerPhase {
Prepared,
Starting,
Serving,
Quiescing,
Closed,
}Expand description
发现 owner 的生命周期阶段;关闭后不能重新开放路由。
Variants§
Prepared
目录已构造,尚未启动后端连接。
Starting
正在准备连接或确认首次注册。
Serving
已完成发布阶段,可按有效证据提供发现。
Quiescing
已撤销发布资格,正在摘流或等待业务排空。
Closed
资源关闭已开始或完成,不再接纳新发现工作。
Trait Implementations§
Source§impl Clone for OwnerPhase
impl Clone for OwnerPhase
impl Copy for OwnerPhase
Source§impl Debug for OwnerPhase
impl Debug for OwnerPhase
impl Eq for OwnerPhase
Source§impl PartialEq for OwnerPhase
impl PartialEq for OwnerPhase
impl StructuralPartialEq for OwnerPhase
Auto Trait Implementations§
impl Freeze for OwnerPhase
impl RefUnwindSafe for OwnerPhase
impl Send for OwnerPhase
impl Sync for OwnerPhase
impl Unpin for OwnerPhase
impl UnsafeUnpin for OwnerPhase
impl UnwindSafe for OwnerPhase
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