pub struct LocalPublisher { /* private fields */ }Implementations§
Source§impl LocalPublisher
impl LocalPublisher
Sourcepub fn subscriber_count(&self) -> usize
pub fn subscriber_count(&self) -> usize
Number of unique client sessions currently playing this mount.
Sourcepub fn is_closed(&self) -> bool
pub fn is_closed(&self) -> bool
True after the mount is unregistered or its server begins shutdown.
Sourcepub fn keyframe_requests(&self) -> Receiver<u8>
pub fn keyframe_requests(&self) -> Receiver<u8>
Subscribe to local-source keyframe requests (track id).
Sourcepub fn request_keyframe(&self, track_id: u8)
pub fn request_keyframe(&self, track_id: u8)
Request a keyframe on a track (used by RTCP feedback actions).
Sourcepub fn push(&self, frame: AccessUnit) -> Result<PushResult>
pub fn push(&self, frame: AccessUnit) -> Result<PushResult>
Push a frame without track validation (for protocol ingest like RTMP where the description may not yet be populated).
pub fn try_push(&self, frame: AccessUnit) -> Result<PushResult>
pub async fn close(self) -> Result<()>
Trait Implementations§
Source§impl Drop for LocalPublisher
impl Drop for LocalPublisher
Auto Trait Implementations§
impl !RefUnwindSafe for LocalPublisher
impl !UnwindSafe for LocalPublisher
impl Forget for LocalPublisher
impl Freeze for LocalPublisher
impl Move for LocalPublisher
impl Send for LocalPublisher
impl Sync for LocalPublisher
impl Unpin for LocalPublisher
impl UnsafeUnpin for LocalPublisher
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