pub struct SrtListener { /* private fields */ }Available on crate feature
tokio only.Expand description
An SRT listener that accepts incoming Caller connections.
Implementations§
Source§impl SrtListener
impl SrtListener
Sourcepub async fn bind<A: ToSocketAddrs>(
addr: A,
config: HandshakeConfig,
) -> Result<Self>
pub async fn bind<A: ToSocketAddrs>( addr: A, config: HandshakeConfig, ) -> Result<Self>
Bind an SRT listener on addr.
Sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
The local socket address the listener is bound to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SrtListener
impl RefUnwindSafe for SrtListener
impl Send for SrtListener
impl Sync for SrtListener
impl Unpin for SrtListener
impl UnsafeUnpin for SrtListener
impl UnwindSafe for SrtListener
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