pub trait RTSPStreamTransportExt: IsA<RTSPStreamTransport> + Sealed + 'static {
Show 15 methods
// Provided methods
fn rtpinfo(
&self,
start_time: impl Into<Option<ClockTime>>,
) -> Option<GString> { ... }
fn stream(&self) -> Option<RTSPStream> { ... }
fn url(&self) -> Option<RTSPUrl> { ... }
fn is_timed_out(&self) -> bool { ... }
fn keep_alive(&self) { ... }
fn message_sent(&self) { ... }
fn recv_data(
&self,
channel: u32,
buffer: Buffer,
) -> Result<FlowSuccess, FlowError> { ... }
fn send_rtcp(&self, buffer: &Buffer) -> Result<(), BoolError> { ... }
fn send_rtp(&self, buffer: &Buffer) -> Result<(), BoolError> { ... }
fn set_active(&self, active: bool) -> Result<(), BoolError> { ... }
fn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P) { ... }
fn set_message_sent<P: Fn() + 'static>(&self, message_sent: P) { ... }
fn set_message_sent_full<P: Fn(&RTSPStreamTransport) + 'static>(
&self,
message_sent: P,
) { ... }
fn set_timed_out(&self, timedout: bool) { ... }
fn set_url(&self, url: Option<&RTSPUrl>) { ... }
}
Expand description
Provided Methods§
sourcefn stream(&self) -> Option<RTSPStream>
fn stream(&self) -> Option<RTSPStream>
sourcefn url(&self) -> Option<RTSPUrl>
fn url(&self) -> Option<RTSPUrl>
Get the url configured in self
.
§Returns
the url configured in self
.
It remains valid for as long as self
is valid.
sourcefn is_timed_out(&self) -> bool
fn is_timed_out(&self) -> bool
sourcefn keep_alive(&self)
fn keep_alive(&self)
Signal the installed keep_alive callback for self
.
sourcefn message_sent(&self)
fn message_sent(&self)
Signal the installed message_sent / message_sent_full callback for self
.
sourcefn recv_data(
&self,
channel: u32,
buffer: Buffer,
) -> Result<FlowSuccess, FlowError>
fn recv_data( &self, channel: u32, buffer: Buffer, ) -> Result<FlowSuccess, FlowError>
Receive buffer
on channel
self
.
§channel
a channel
§buffer
§Returns
a gst::FlowReturn
. Returns GST_FLOW_NOT_LINKED when channel
is not
configured in the transport of self
.
sourcefn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P)
fn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P)
sourcefn set_message_sent<P: Fn() + 'static>(&self, message_sent: P)
fn set_message_sent<P: Fn() + 'static>(&self, message_sent: P)
sourcefn set_message_sent_full<P: Fn(&RTSPStreamTransport) + 'static>(
&self,
message_sent: P,
)
fn set_message_sent_full<P: Fn(&RTSPStreamTransport) + 'static>( &self, message_sent: P, )
sourcefn set_timed_out(&self, timedout: bool)
fn set_timed_out(&self, timedout: bool)
Object Safety§
This trait is not object safe.