[−][src]Struct mediasoup::worker::Worker
Implementations
impl Worker
[src]
pub fn pid(&self) -> u32
[src]
Worker process identifier (PID).
pub fn app_data(&self) -> &AppData
[src]
App custom data.
pub async fn get_resource_usage<'_>(
&'_ self
) -> Result<WorkerResourceUsage, RequestError>
[src]
&'_ self
) -> Result<WorkerResourceUsage, RequestError>
Get mediasoup-worker process resource usage.
pub async fn update_settings<'_>(
&'_ self,
data: WorkerUpdateSettings
) -> Result<(), RequestError>
[src]
&'_ self,
data: WorkerUpdateSettings
) -> Result<(), RequestError>
Update settings.
pub async fn create_router<'_>(
&'_ self,
router_options: RouterOptions
) -> Result<Router, CreateRouterError>
[src]
&'_ self,
router_options: RouterOptions
) -> Result<Router, CreateRouterError>
Create a Router.
Worker will be kept alive as long as at least one router instance is alive.
pub fn on_new_router<F: Fn(&Router) + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_dead<F: FnOnce(ExitStatus) + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_close<F: FnOnce() + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl !UnwindSafe for Worker
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,