pub struct RtmpConnector { /* private fields */ }Expand description
RTMP client connector
Implementations§
Source§impl RtmpConnector
impl RtmpConnector
Sourcepub async fn connect(config: ClientConfig) -> Result<Self>
pub async fn connect(config: ClientConfig) -> Result<Self>
Connect to an RTMP server
Sourcepub async fn create_stream(&mut self) -> Result<u32>
pub async fn create_stream(&mut self) -> Result<u32>
Create a stream for publishing or playing
Sourcepub async fn read_message(&mut self) -> Result<RtmpMessage>
pub async fn read_message(&mut self) -> Result<RtmpMessage>
Read the next RTMP message
Auto Trait Implementations§
impl Freeze for RtmpConnector
impl RefUnwindSafe for RtmpConnector
impl Send for RtmpConnector
impl Sync for RtmpConnector
impl Unpin for RtmpConnector
impl UnwindSafe for RtmpConnector
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