pub struct RtspServer { /* private fields */ }Available on crate features
ingest and rtsp only.Expand description
An RTSP server that serves live streams to pulling players.
Implementations§
Source§impl RtspServer
impl RtspServer
Sourcepub fn new(playback: Arc<dyn PlaybackRegistry>, bind: SocketAddr) -> Self
pub fn new(playback: Arc<dyn PlaybackRegistry>, bind: SocketAddr) -> Self
Serve streams from playback, listening on bind.
Sourcepub async fn run(self, shutdown: CancellationToken) -> Result<()>
pub async fn run(self, shutdown: CancellationToken) -> Result<()>
Accept and serve RTSP connections until shutdown fires.
Auto Trait Implementations§
impl !RefUnwindSafe for RtspServer
impl !UnwindSafe for RtspServer
impl Freeze for RtspServer
impl Send for RtspServer
impl Sync for RtspServer
impl Unpin for RtspServer
impl UnsafeUnpin for RtspServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more