pub struct XrayCore {
pub binary_path: PathBuf,
pub config_path: PathBuf,
pub service_name: String,
}Fields§
§binary_path: PathBuf§config_path: PathBuf§service_name: StringImplementations§
Trait Implementations§
Source§impl ProxyCore for XrayCore
impl ProxyCore for XrayCore
fn name(&self) -> &'static str
fn is_installed<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn install<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn active_profile<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn switch_profile<'life0, 'life1, 'async_trait>(
&'life0 self,
outbound_tag: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reload<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn start_benchmark_session<'life0, 'life1, 'async_trait>(
&'life0 self,
outbound_tags: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn BenchmarkSession>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start_benchmark_session<'life0, 'life1, 'async_trait>(
&'life0 self,
outbound_tags: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn BenchmarkSession>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Optionally start an isolated, non-disruptive benchmark session exposing
a dedicated local proxy endpoint for each requested outbound tag.
Returning
Ok(None) falls back to sequential switch+reload benchmarking.Auto Trait Implementations§
impl Forget for XrayCore
impl Freeze for XrayCore
impl Move for XrayCore
impl RefUnwindSafe for XrayCore
impl Send for XrayCorewhere
RawVecInner: Send,
impl Sync for XrayCorewhere
RawVecInner: Sync,
impl Unpin for XrayCore
impl UnsafeUnpin for XrayCore
impl UnwindSafe for XrayCorewhere
RawVecInner: UnwindSafe,
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