pub struct Connection<H: RtmpHandler> { /* private fields */ }Expand description
Per-connection handler
Implementations§
Source§impl<H: RtmpHandler> Connection<H>
impl<H: RtmpHandler> Connection<H>
Sourcepub fn new(
session_id: u64,
socket: TcpStream,
peer_addr: SocketAddr,
config: ServerConfig,
handler: Arc<H>,
registry: Arc<StreamRegistry>,
) -> Self
pub fn new( session_id: u64, socket: TcpStream, peer_addr: SocketAddr, config: ServerConfig, handler: Arc<H>, registry: Arc<StreamRegistry>, ) -> Self
Create a new connection handler
Auto Trait Implementations§
impl<H> Freeze for Connection<H>
impl<H> !RefUnwindSafe for Connection<H>
impl<H> Send for Connection<H>
impl<H> Sync for Connection<H>
impl<H> Unpin for Connection<H>
impl<H> !UnwindSafe for Connection<H>
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