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 AcceptedRtmpConnectionwhere
*const dyn RtmpStream is !null: Freeze,
PhantomData<dyn RtmpStream>: Freeze,
*const u8 is !null: Freeze,
*mut Shared: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(DamageKind, Disposition)>: Freeze,
*const LeafNode<ChunkStreamId, CsidState> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ChunkStreamId, CsidState)>>: Freeze,
PhantomData<Damage>: Freeze,
PhantomData<ServerEvent>: Freeze,
impl Move for AcceptedRtmpConnection
impl Send for AcceptedRtmpConnectionwhere
BoxRaw<dyn RtmpStream>: Send,
BytesMut: Send,
RawVecInner: Send,
NodeRef<Owned, ChunkStreamId, CsidState, LeafOrInternal>: Send,
BoxRaw<(ChunkStreamId, CsidState)>: Send,
NonZero<u32>: Send,
&'static str: Send,
ServerEvent: Send,
impl Unpin for AcceptedRtmpConnectionwhere
Framed<Pin<Box<dyn RtmpStream>>, SessionCodec<ServerSession>>: Unpin,
*const u8 is !null: Unpin,
ServerEvent: Unpin,
impl UnsafeUnpin for AcceptedRtmpConnectionwhere
*const dyn RtmpStream is !null: UnsafeUnpin,
PhantomData<dyn RtmpStream>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
*mut Shared: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(DamageKind, Disposition)>: UnsafeUnpin,
*const LeafNode<ChunkStreamId, CsidState> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ChunkStreamId, CsidState)>>: UnsafeUnpin,
PhantomData<Damage>: UnsafeUnpin,
PhantomData<ServerEvent>: UnsafeUnpin,
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