Trait gstreamer_rtsp_server::prelude::RTSPClientExt[][src]

pub trait RTSPClientExt: 'static {
Show methods fn close(&self);
fn auth(&self) -> Option<RTSPAuth>;
fn content_length_limit(&self) -> u32;
fn mount_points(&self) -> Option<RTSPMountPoints>;
fn session_pool(&self) -> Option<RTSPSessionPool>;
fn stream_transport(&self, channel: u8) -> Option<RTSPStreamTransport>;
fn thread_pool(&self) -> Option<RTSPThreadPool>;
fn session_filter(
        &self,
        func: Option<&mut dyn FnMut(&RTSPClient, &RTSPSession) -> RTSPFilterResult>
    ) -> Vec<RTSPSession>;
fn set_auth<P: IsA<RTSPAuth>>(&self, auth: Option<&P>);
fn set_content_length_limit(&self, limit: u32);
fn set_mount_points<P: IsA<RTSPMountPoints>>(&self, mounts: Option<&P>);
fn set_session_pool<P: IsA<RTSPSessionPool>>(&self, pool: Option<&P>);
fn set_thread_pool<P: IsA<RTSPThreadPool>>(&self, pool: Option<&P>);
fn is_drop_backlog(&self) -> bool;
fn set_drop_backlog(&self, drop_backlog: bool);
fn post_session_timeout(&self) -> i32;
fn set_post_session_timeout(&self, post_session_timeout: i32);
fn connect_announce_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_closed<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_describe_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_get_parameter_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_handle_response<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_new_session<F: Fn(&Self, &RTSPSession) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_options_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pause_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_play_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_announce_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_describe_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_get_parameter_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_options_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_pause_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_play_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_record_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_set_parameter_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_setup_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pre_teardown_request<F: Fn(&Self, &RTSPContext) -> RTSPStatusCode + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_record_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_set_parameter_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_setup_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_teardown_request<F: Fn(&Self, &RTSPContext) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_drop_backlog_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_mount_points_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_post_session_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_session_pool_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Trait containing all RTSPClient methods.

Implementors

crate::RTSPClient

Required methods

fn close(&self)[src]

Close the connection of self and remove all media it was managing.

fn auth(&self) -> Option<RTSPAuth>[src]

Get the crate::RTSPAuth used as the authentication manager of self.

Returns

the crate::RTSPAuth of self. [crate::glib::object::ObjectExt::unref()] after usage.

fn content_length_limit(&self) -> u32[src]

This is supported on crate feature v1_18 only.

Get the Content-Length limit of self.

Returns

the Content-Length limit.

fn mount_points(&self) -> Option<RTSPMountPoints>[src]

Get the crate::RTSPMountPoints object that self uses to manage its sessions.

Returns

a crate::RTSPMountPoints, unref after usage.

fn session_pool(&self) -> Option<RTSPSessionPool>[src]

Get the crate::RTSPSessionPool object that self uses to manage its sessions.

Returns

a crate::RTSPSessionPool, unref after usage.

fn stream_transport(&self, channel: u8) -> Option<RTSPStreamTransport>[src]

This is supported on crate feature v1_18 only.

This is useful when providing a send function through [Self::set_send_func()] when doing RTSP over TCP: the send function must call gst_rtsp_stream_transport_message_sent () on the appropriate transport when data has been received for streaming to continue.

Returns

the crate::RTSPStreamTransport associated with channel.

fn thread_pool(&self) -> Option<RTSPThreadPool>[src]

Get the crate::RTSPThreadPool used as the thread pool of self.

Returns

the crate::RTSPThreadPool of self. [crate::glib::object::ObjectExt::unref()] after usage.

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

Call func for each session managed by self. The result value of func determines what happens to the session. func will be called with self locked so no further actions on self can be performed from func.

If func returns crate::RTSPFilterResult::Remove, the session will be removed from self.

If func returns crate::RTSPFilterResult::Keep, the session will remain in self.

If func returns crate::RTSPFilterResult::Ref, the session will remain in self but will also be added with an additional ref to the result [crate::glib::List] of this function..

When func is None, crate::RTSPFilterResult::Ref will be assumed for each session.

func

a callback

user_data

user data passed to func

Returns

a [crate::glib::List] with all sessions for which func returned crate::RTSPFilterResult::Ref. After usage, each element in the [crate::glib::List] should be unreffed before the list is freed.

fn set_auth<P: IsA<RTSPAuth>>(&self, auth: Option<&P>)[src]

configure auth to be used as the authentication manager of self.

auth

a crate::RTSPAuth

fn set_content_length_limit(&self, limit: u32)[src]

This is supported on crate feature v1_18 only.

Configure self to use the specified Content-Length limit.

Define an appropriate request size limit and reject requests exceeding the limit with response status 413 Request Entity Too Large

limit

Content-Length limit

fn set_mount_points<P: IsA<RTSPMountPoints>>(&self, mounts: Option<&P>)[src]

Set mounts as the mount points for self which it will use to map urls to media streams. These mount points are usually inherited from the server that created the client but can be overriden later.

mounts

a crate::RTSPMountPoints

fn set_session_pool<P: IsA<RTSPSessionPool>>(&self, pool: Option<&P>)[src]

Set pool as the sessionpool for self which it will use to find or allocate sessions. the sessionpool is usually inherited from the server that created the client but can be overridden later.

pool

a crate::RTSPSessionPool

fn set_thread_pool<P: IsA<RTSPThreadPool>>(&self, pool: Option<&P>)[src]

configure pool to be used as the thread pool of self.

pool

a crate::RTSPThreadPool

fn is_drop_backlog(&self) -> bool[src]

fn set_drop_backlog(&self, drop_backlog: bool)[src]

fn post_session_timeout(&self) -> i32[src]

fn set_post_session_timeout(&self, post_session_timeout: i32)[src]

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

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

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

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

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

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

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

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

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

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

This is supported on crate feature v1_12 only.

ctx

a crate::RTSPContext

Returns

a crate::gst_rtsp::RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code

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

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

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

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

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

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

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

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

Loading content...

Implementors

impl<O: IsA<RTSPClient>> RTSPClientExt for O[src]

fn close(&self)[src]

fn auth(&self) -> Option<RTSPAuth>[src]

fn content_length_limit(&self) -> u32[src]

This is supported on crate feature v1_18 only.

fn mount_points(&self) -> Option<RTSPMountPoints>[src]

fn session_pool(&self) -> Option<RTSPSessionPool>[src]

fn stream_transport(&self, channel: u8) -> Option<RTSPStreamTransport>[src]

This is supported on crate feature v1_18 only.

fn thread_pool(&self) -> Option<RTSPThreadPool>[src]

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

fn set_auth<P: IsA<RTSPAuth>>(&self, auth: Option<&P>)[src]

fn set_content_length_limit(&self, limit: u32)[src]

This is supported on crate feature v1_18 only.

fn set_mount_points<P: IsA<RTSPMountPoints>>(&self, mounts: Option<&P>)[src]

fn set_session_pool<P: IsA<RTSPSessionPool>>(&self, pool: Option<&P>)[src]

fn set_thread_pool<P: IsA<RTSPThreadPool>>(&self, pool: Option<&P>)[src]

fn is_drop_backlog(&self) -> bool[src]

fn set_drop_backlog(&self, drop_backlog: bool)[src]

fn post_session_timeout(&self) -> i32[src]

fn set_post_session_timeout(&self, post_session_timeout: i32)[src]

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

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

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

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

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

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

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

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

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

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

This is supported on crate feature v1_12 only.

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

This is supported on crate feature v1_12 only.

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

This is supported on crate feature v1_12 only.

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

This is supported on crate feature v1_12 only.

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

This is supported on crate feature v1_12 only.

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

This is supported on crate feature v1_12 only.

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

This is supported on crate feature v1_12 only.

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

This is supported on crate feature v1_12 only.

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

This is supported on crate feature v1_12 only.

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

This is supported on crate feature v1_12 only.

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

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

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

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

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

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

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

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

Loading content...