pub struct AcceptedRtmpConnection { /* private fields */ }Available on crate feature
tokio only.Expand description
A connection AsyncRtmpServer::accept just took off its listen socket:
the publisher’s address (which its erased stream cannot report) and the
connection itself.
Implementations§
Source§impl AcceptedRtmpConnection
impl AcceptedRtmpConnection
Sourcepub fn new(conn: RtmpConnection, peer: SocketAddr) -> Self
pub fn new(conn: RtmpConnection, peer: SocketAddr) -> Self
Wrap an already-accepted connection with the peer it came from.
Sourcepub fn peer_addr(&self) -> SocketAddr
pub fn peer_addr(&self) -> SocketAddr
The remote address of the publisher.
Sourcepub fn into_connection(self) -> RtmpConnection
pub fn into_connection(self) -> RtmpConnection
The connection, ready for RtmpConnection::next_events.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AcceptedRtmpConnection
impl !Sync for AcceptedRtmpConnection
impl !UnwindSafe for AcceptedRtmpConnection
impl Forget for AcceptedRtmpConnection
impl Freeze for AcceptedRtmpConnection
impl Move for AcceptedRtmpConnection
impl Send for AcceptedRtmpConnection
impl Unpin for AcceptedRtmpConnection
impl UnsafeUnpin for AcceptedRtmpConnection
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