pub trait RTSPServerExt: IsA<RTSPServer> + 'static {
Show 29 methods
// Provided methods
fn client_filter(
&self,
func: Option<&mut dyn FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult>,
) -> Vec<RTSPClient> { ... }
fn create_socket(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<Socket, Error> { ... }
fn create_source(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<Source, Error> { ... }
fn address(&self) -> Option<GString> { ... }
fn auth(&self) -> Option<RTSPAuth> { ... }
fn backlog(&self) -> i32 { ... }
fn bound_port(&self) -> i32 { ... }
fn content_length_limit(&self) -> u32 { ... }
fn mount_points(&self) -> Option<RTSPMountPoints> { ... }
fn service(&self) -> GString { ... }
fn session_pool(&self) -> Option<RTSPSessionPool> { ... }
fn thread_pool(&self) -> Option<RTSPThreadPool> { ... }
fn set_address(&self, address: &str) { ... }
fn set_auth(&self, auth: Option<&impl IsA<RTSPAuth>>) { ... }
fn set_backlog(&self, backlog: i32) { ... }
fn set_content_length_limit(&self, limit: u32) { ... }
fn set_mount_points(&self, mounts: Option<&impl IsA<RTSPMountPoints>>) { ... }
fn set_service(&self, service: &str) { ... }
fn set_session_pool(&self, pool: Option<&impl IsA<RTSPSessionPool>>) { ... }
fn set_thread_pool(&self, pool: Option<&impl IsA<RTSPThreadPool>>) { ... }
fn transfer_connection(
&self,
socket: impl IsA<Socket>,
ip: &str,
port: i32,
initial_buffer: Option<&str>,
) -> Result<(), BoolError> { ... }
fn connect_client_connected<F: Fn(&Self, &RTSPClient) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_address_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_backlog_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_bound_port_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_content_length_limit_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_service_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 { ... }
}
Provided Methods§
fn client_filter( &self, func: Option<&mut dyn FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult>, ) -> Vec<RTSPClient>
fn create_socket( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Socket, Error>
fn create_source( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Source, Error>
fn address(&self) -> Option<GString>
fn auth(&self) -> Option<RTSPAuth>
fn backlog(&self) -> i32
fn bound_port(&self) -> i32
fn content_length_limit(&self) -> u32
Available on crate feature
v1_18
only.fn mount_points(&self) -> Option<RTSPMountPoints>
fn service(&self) -> GString
fn session_pool(&self) -> Option<RTSPSessionPool>
fn thread_pool(&self) -> Option<RTSPThreadPool>
fn set_address(&self, address: &str)
fn set_auth(&self, auth: Option<&impl IsA<RTSPAuth>>)
fn set_backlog(&self, backlog: i32)
fn set_content_length_limit(&self, limit: u32)
Available on crate feature
v1_18
only.fn set_mount_points(&self, mounts: Option<&impl IsA<RTSPMountPoints>>)
fn set_service(&self, service: &str)
fn set_session_pool(&self, pool: Option<&impl IsA<RTSPSessionPool>>)
fn set_thread_pool(&self, pool: Option<&impl IsA<RTSPThreadPool>>)
fn transfer_connection( &self, socket: impl IsA<Socket>, ip: &str, port: i32, initial_buffer: Option<&str>, ) -> Result<(), BoolError>
fn connect_client_connected<F: Fn(&Self, &RTSPClient) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_address_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_backlog_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_bound_port_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_content_length_limit_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_service_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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.