Trait gstreamer_rtsp_server::prelude::RTSPThreadPoolExt [−][src]
pub trait RTSPThreadPoolExt: 'static {
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;
}Required methods
fn max_threads(&self) -> i32[src]
Get the maximum number of threads used for client connections.
See Self::set_max_threads().
Returns
the maximum number of threads.
fn thread(&self, type_: RTSPThreadType, ctx: &RTSPContext) -> Option<RTSPThread>[src]
Get a new crate::RTSPThread for type_ and ctx.
type_
ctx
Returns
a new crate::RTSPThread,
[crate::RTSPThread::stop()] after usage
fn set_max_threads(&self, max_threads: i32)[src]
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[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<RTSPThreadPool>> RTSPThreadPoolExt for O[src]
impl<O: IsA<RTSPThreadPool>> RTSPThreadPoolExt for O[src]fn max_threads(&self) -> i32[src]
fn thread(&self, type_: RTSPThreadType, ctx: &RTSPContext) -> Option<RTSPThread>[src]
fn set_max_threads(&self, max_threads: i32)[src]
fn connect_max_threads_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId