[][src]Trait gstreamer_rtsp_server::RTSPSessionPoolExt

pub trait RTSPSessionPoolExt: 'static {
    pub fn cleanup(&self) -> u32;
pub fn create(&self) -> Result<RTSPSession, BoolError>;
pub fn filter(
        &self,
        func: Option<&mut dyn FnMut(&RTSPSessionPool, &RTSPSession) -> RTSPFilterResult>
    ) -> Vec<RTSPSession>;
pub fn find(&self, sessionid: &str) -> Option<RTSPSession>;
pub fn get_max_sessions(&self) -> u32;
pub fn get_n_sessions(&self) -> u32;
pub fn remove<P: IsA<RTSPSession>>(&self, sess: &P) -> Result<(), BoolError>;
pub fn set_max_sessions(&self, max: u32);
pub fn connect_session_removed<F: Fn(&Self, &RTSPSession) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_max_sessions_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

pub fn cleanup(&self) -> u32[src]

pub fn create(&self) -> Result<RTSPSession, BoolError>[src]

pub fn filter(
    &self,
    func: Option<&mut dyn FnMut(&RTSPSessionPool, &RTSPSession) -> RTSPFilterResult>
) -> Vec<RTSPSession>
[src]

pub fn find(&self, sessionid: &str) -> Option<RTSPSession>[src]

pub fn get_max_sessions(&self) -> u32[src]

pub fn get_n_sessions(&self) -> u32[src]

pub fn remove<P: IsA<RTSPSession>>(&self, sess: &P) -> Result<(), BoolError>[src]

pub fn set_max_sessions(&self, max: u32)[src]

pub fn connect_session_removed<F: Fn(&Self, &RTSPSession) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_max_sessions_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...

Implementors

impl<O: IsA<RTSPSessionPool>> RTSPSessionPoolExt for O[src]

Loading content...