pub struct ServerApi<'a> { /* private fields */ }Implementations§
Source§impl<'a> ServerApi<'a>
impl<'a> ServerApi<'a>
pub async fn status(&self) -> Result<ServerStatus>
pub async fn cpu_history(&self, bucket: u32) -> Result<Vec<CpuHistoryPoint>>
pub async fn xray_versions(&self) -> Result<Vec<String>>
pub async fn config_json(&self) -> Result<Value>
pub async fn download_db(&self) -> Result<Vec<u8>>
pub async fn new_uuid(&self) -> Result<UuidResponse>
pub async fn new_x25519_cert(&self) -> Result<X25519Cert>
pub async fn new_mldsa65(&self) -> Result<Mldsa65Keys>
pub async fn new_mlkem768(&self) -> Result<Mlkem768Keys>
pub async fn new_vless_enc(&self) -> Result<VlessEncResult>
pub async fn stop_xray(&self) -> Result<()>
pub async fn restart_xray(&self) -> Result<()>
pub async fn install_xray(&self, version: &str) -> Result<()>
pub async fn update_geofile(&self, filename: Option<&str>) -> Result<()>
pub async fn logs( &self, count: u32, level: &str, syslog: &str, ) -> Result<Vec<String>>
pub async fn xray_logs( &self, count: u32, filter: &str, show_direct: bool, show_blocked: bool, show_proxy: bool, ) -> Result<Vec<String>>
pub async fn import_db(&self, data: Vec<u8>) -> Result<()>
pub async fn new_ech_cert(&self, sni: &str) -> Result<EchCert>
Auto Trait Implementations§
impl<'a> Freeze for ServerApi<'a>
impl<'a> !RefUnwindSafe for ServerApi<'a>
impl<'a> Send for ServerApi<'a>
impl<'a> Sync for ServerApi<'a>
impl<'a> Unpin for ServerApi<'a>
impl<'a> UnsafeUnpin for ServerApi<'a>
impl<'a> !UnwindSafe for ServerApi<'a>
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