pub struct MountHandle {
pub path: MountId,
pub description: Arc<MediaDescription>,
/* private fields */
}Fields§
§path: MountId§description: Arc<MediaDescription>Implementations§
Source§impl MountHandle
impl MountHandle
Sourcepub fn mount(&self) -> &Arc<Mount> ⓘ
pub fn mount(&self) -> &Arc<Mount> ⓘ
Shared mount state behind this handle (control-plane access).
Sourcepub fn description(&self) -> Arc<MediaDescription> ⓘ
pub fn description(&self) -> Arc<MediaDescription> ⓘ
Current dynamic description (reflects RTMP/SRT sequence headers).
Sourcepub fn update_description(&self, description: MediaDescription) -> Result<()>
pub fn update_description(&self, description: MediaDescription) -> Result<()>
Replace the media description for an ingest-created mount.
pub fn publisher(&self) -> Result<LocalPublisher>
Sourcepub fn request_keyframe(&self, track_id: u8)
pub fn request_keyframe(&self, track_id: u8)
Request a keyframe from a local source (RTCP PLI/FIR/NACK action).
pub fn subscribe(&self) -> FrameReceiver
Sourcepub fn subscribe_with_startup(&self) -> (FrameReceiver, Vec<Arc<AccessUnit>>)
pub fn subscribe_with_startup(&self) -> (FrameReceiver, Vec<Arc<AccessUnit>>)
Subscribe to live frames together with a cached decodable stream start.
pub fn announce_fmtp(&self) -> HashMap<u8, Arc<str>>
Sourcepub fn cancellation_token(&self) -> CancellationToken
pub fn cancellation_token(&self) -> CancellationToken
Cancellation token tied to the mount lifetime.
Sourcepub fn mount_id(&self) -> &MountId
pub fn mount_id(&self) -> &MountId
Mount path, suitable as the canonical HTTP asset prefix. Stable identity of this mount (independent of its path string).
pub fn path(&self) -> &str
pub fn snapshot(&self) -> MountSnapshot
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MountHandle
impl !UnwindSafe for MountHandle
impl Forget for MountHandle
impl Freeze for MountHandlewhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<MediaDescription> is !null: Freeze,
PhantomData<ArcInner<MediaDescription>>: Freeze,
*const ArcInner<Mount> is !null: Freeze,
PhantomData<ArcInner<Mount>>: Freeze,
impl Move for MountHandle
impl Send for MountHandle
impl Sync for MountHandle
impl Unpin for MountHandle
impl UnsafeUnpin for MountHandlewhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<MediaDescription> is !null: UnsafeUnpin,
PhantomData<ArcInner<MediaDescription>>: UnsafeUnpin,
*const ArcInner<Mount> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mount>>: 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