pub trait RTSPThreadPoolExt: IsA<RTSPThreadPool> + Sealed + 'static {
// Provided methods
fn max_threads(&self) -> i32 { ... }
fn thread(
&self,
type_: RTSPThreadType,
ctx: &RTSPContext,
) -> Option<RTSPThread> { ... }
fn set_max_threads(&self, max_threads: i32) { ... }
fn connect_max_threads_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn max_threads(&self) -> i32
fn max_threads(&self) -> i32
Get the maximum number of threads used for client connections.
See set_max_threads()
.
§Returns
the maximum number of threads.
sourcefn thread(&self, type_: RTSPThreadType, ctx: &RTSPContext) -> Option<RTSPThread>
fn thread(&self, type_: RTSPThreadType, ctx: &RTSPContext) -> Option<RTSPThread>
Get a new RTSPThread
for type_
and ctx
.
§type_
the RTSPThreadType
§ctx
§Returns
a new RTSPThread
,
gst_rtsp_thread_stop()
after usage
sourcefn set_max_threads(&self, max_threads: i32)
fn set_max_threads(&self, max_threads: i32)
Set the maximum threads used by the pool to handle client requests. A value of 0 will use the pool mainloop, a value of -1 will use an unlimited number of threads.
§max_threads
maximum threads
fn connect_max_threads_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.