pub struct RtmpPuller { /* private fields */ }Expand description
RTMP stream puller
Implementations§
Source§impl RtmpPuller
impl RtmpPuller
Sourcepub fn new(config: ClientConfig) -> (Self, Receiver<ClientEvent>)
pub fn new(config: ClientConfig) -> (Self, Receiver<ClientEvent>)
Create a new puller
Returns the puller and a receiver for events.
Sourcepub fn take_events(&mut self) -> Option<Receiver<ClientEvent>>
pub fn take_events(&mut self) -> Option<Receiver<ClientEvent>>
Take the event receiver (if not already taken)
Auto Trait Implementations§
impl Freeze for RtmpPuller
impl RefUnwindSafe for RtmpPuller
impl Send for RtmpPuller
impl Sync for RtmpPuller
impl Unpin for RtmpPuller
impl UnwindSafe for RtmpPuller
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