pub struct SrtHandler { /* private fields */ }Available on crate features
ingest and srt only.Expand description
SRT ingest worker — binds a UDP listener and demuxes one MPEG-TS feed.
Implementations§
Source§impl SrtHandler
impl SrtHandler
Sourcepub fn new(bind: SocketAddr, key: StreamKey) -> Self
pub fn new(bind: SocketAddr, key: StreamKey) -> Self
A listener bound to bind that publishes the received feed as key.
Sourcepub fn with_passphrase(self, passphrase: impl Into<String>) -> Self
Available on crate feature srt-encrypt only.
pub fn with_passphrase(self, passphrase: impl Into<String>) -> Self
srt-encrypt only.Accept an encrypted feed, decrypting with passphrase (the SRT
passphrase the caller was configured with). Feature srt-encrypt.
Trait Implementations§
Source§impl Clone for SrtHandler
impl Clone for SrtHandler
Source§fn clone(&self) -> SrtHandler
fn clone(&self) -> SrtHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SrtHandler
impl Debug for SrtHandler
Source§impl InboundProtocol for SrtHandler
impl InboundProtocol for SrtHandler
Auto Trait Implementations§
impl Freeze for SrtHandler
impl RefUnwindSafe for SrtHandler
impl Send for SrtHandler
impl Sync for SrtHandler
impl Unpin for SrtHandler
impl UnsafeUnpin for SrtHandler
impl UnwindSafe for SrtHandler
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