pub struct SingBoxControllerReadiness { /* private fields */ }Expand description
The loopback readiness probe of the sing-box Clash API.
Implementations§
Source§impl SingBoxControllerReadiness
impl SingBoxControllerReadiness
Sourcepub fn with_reqwest(
controller: SingBoxControllerConfiguration,
) -> Result<Self, PortError>
pub fn with_reqwest( controller: SingBoxControllerConfiguration, ) -> Result<Self, PortError>
Creates the readiness probe with the production HTTP boundary.
Sourcepub fn new(
controller: SingBoxControllerConfiguration,
http: Arc<dyn SingBoxClashHttpPort>,
) -> Result<Self, PortError>
pub fn new( controller: SingBoxControllerConfiguration, http: Arc<dyn SingBoxClashHttpPort>, ) -> Result<Self, PortError>
Creates the readiness probe with an injected HTTP boundary.
Trait Implementations§
Source§impl CoreReadiness for SingBoxControllerReadiness
impl CoreReadiness for SingBoxControllerReadiness
Source§fn probe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn probe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Probes the controller and returns the readiness evidence it observed. Read more
Source§fn active_core_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<CoreVersion>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn active_core_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<CoreVersion>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Authoritative version reported by the ready running engine, when the
host can read it. Absence leaves version-scoped operations unavailable.
Auto Trait Implementations§
impl !RefUnwindSafe for SingBoxControllerReadiness
impl !UnwindSafe for SingBoxControllerReadiness
impl Forget for SingBoxControllerReadiness
impl Freeze for SingBoxControllerReadiness
impl Move for SingBoxControllerReadiness
impl Send for SingBoxControllerReadiness
impl Sync for SingBoxControllerReadiness
impl Unpin for SingBoxControllerReadiness
impl UnsafeUnpin for SingBoxControllerReadiness
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