pub struct RtmpListener { /* private fields */ }
Implementations§
Source§impl RtmpListener
impl RtmpListener
pub async fn bind<A: ToSocketAddrs>(addr: A) -> IOResult<Self>
pub async fn accept(&self) -> IOResult<(RtmpStream, SocketAddr)>
pub fn poll_accept( &self, cx: &mut Context<'_>, ) -> Poll<IOResult<(RtmpStream, SocketAddr)>>
pub fn from_std(std_listener: StdListener) -> IOResult<Self>
pub fn into_std(self) -> IOResult<StdListener>
pub fn local_addr(&self) -> IOResult<SocketAddr>
pub fn ttl(&self) -> IOResult<u32>
pub fn set_ttl(&self, ttl: u32) -> IOResult<()>
Trait Implementations§
Source§impl AsFd for RtmpListener
impl AsFd for RtmpListener
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Source§impl AsRawFd for RtmpListener
impl AsRawFd for RtmpListener
Source§impl Debug for RtmpListener
impl Debug for RtmpListener
Source§impl TryFrom<TcpListener> for RtmpListener
impl TryFrom<TcpListener> for RtmpListener
Auto Trait Implementations§
impl !Freeze for RtmpListener
impl RefUnwindSafe for RtmpListener
impl Send for RtmpListener
impl Sync for RtmpListener
impl Unpin for RtmpListener
impl UnwindSafe for RtmpListener
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