pub struct MediamtxHttpClient { /* private fields */ }
Implementations§
Source§impl MediamtxHttpClient
impl MediamtxHttpClient
pub fn new(base_url: Url, default_headers: Option<HeaderMap>) -> Self
pub async fn get_global_config(&self) -> Result<TMediaMTXGlobalConfig>
pub async fn patch_global_config( &self, data: TMediaMTXGlobalConfig, ) -> Result<()>
pub async fn get_default_path(&self) -> Result<TMediaMTXGetDefaultPath>
pub async fn patch_default_path( &self, data: TMediaMTXPatchDefaultPath, ) -> Result<()>
pub async fn get_paths_configs(&self) -> Result<MediaMTXPathsConfigs>
pub async fn get_path_config( &self, path_name: &str, ) -> Result<TMediaMTXGetDefaultPath>
pub async fn add_path(&self, path_config: TMediaMTXAddPath) -> Result<()>
pub async fn patch_path(&self, path_config: TMediaMTXAddPath) -> Result<()>
pub async fn replace_path(&self, path_config: TMediaMTXAddPath) -> Result<()>
pub async fn delete_path(&self, path_name: &str) -> Result<()>
pub async fn get_paths_status(&self) -> Result<MediaMTXPathsStatusList>
pub async fn get_path_status( &self, path_name: &str, ) -> Result<MediaMTXPathStatus>
pub async fn sync_paths( &self, paths: Vec<TMediaMTXAddPath>, remove_unused: bool, ) -> Result<()>
Trait Implementations§
Source§impl Clone for MediamtxHttpClient
impl Clone for MediamtxHttpClient
Source§fn clone(&self) -> MediamtxHttpClient
fn clone(&self) -> MediamtxHttpClient
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 moreAuto Trait Implementations§
impl Freeze for MediamtxHttpClient
impl !RefUnwindSafe for MediamtxHttpClient
impl Send for MediamtxHttpClient
impl Sync for MediamtxHttpClient
impl Unpin for MediamtxHttpClient
impl !UnwindSafe for MediamtxHttpClient
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