pub struct BroadcastSession { /* private fields */ }Implementations§
Source§impl BroadcastSession
impl BroadcastSession
pub fn id(&self) -> String
pub fn role(&self) -> BroadcastRole
pub fn source_slots(&self) -> Vec<String>
pub fn state(&self) -> BroadcastState
pub fn budget(&self) -> BroadcastBudget
pub fn stats(&self) -> BroadcastStats
pub fn begin_publication( &self, source_slot: &str, publication: MediaPublicationConfig, ) -> Result<MediaPublicationConfig, BroadcastError>
pub fn publish( &self, publication_id: PublicationId, sample: EncodedMediaSample, ) -> Result<(), BroadcastError>
pub fn retire_publication( &self, publication_id: PublicationId, ) -> Result<(), BroadcastError>
pub fn pause_publication( &self, publication_id: PublicationId, ) -> Result<(), BroadcastError>
Sourcepub fn retire_receiver(
&self,
publication_id: PublicationId,
media_generation: u32,
) -> Result<(), BroadcastError>
pub fn retire_receiver( &self, publication_id: PublicationId, media_generation: u32, ) -> Result<(), BroadcastError>
Release decoder state for one exact incoming media generation. This is platform cleanup only; grant, source, and broadcast lifecycle remain owned by this session.
pub fn subscribe(&self, source_slots: Vec<String>) -> Result<(), BroadcastError>
pub fn accept_object( &self, encoded: &[u8], ) -> Result<Option<EncodedMediaChunk>, BroadcastError>
pub fn accept_media( &self, encoded: &[u8], ) -> Result<Option<AcceptedBroadcastMedia>, BroadcastError>
Sourcepub fn accept_media_for_source(
&self,
source_slot: &str,
encoded: &[u8],
) -> Result<Option<AcceptedBroadcastMedia>, BroadcastError>
pub fn accept_media_for_source( &self, source_slot: &str, encoded: &[u8], ) -> Result<Option<AcceptedBroadcastMedia>, BroadcastError>
Admit an object only from the source namespace selected by the private relay adapter. This prevents an otherwise valid co-host object from being replayed through another authorized source’s relay path.
pub fn observe( &self, observation: BroadcastAdapterObservation, ) -> Result<(), BroadcastError>
pub fn take_actions(&self, max: usize) -> Vec<BroadcastAdapterAction>
pub fn revoke(&self, grant_generation: u64) -> Result<(), BroadcastError>
pub fn close(&self)
Trait Implementations§
Source§impl Clone for BroadcastSession
impl Clone for BroadcastSession
Source§fn clone(&self) -> BroadcastSession
fn clone(&self) -> BroadcastSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BroadcastSession
impl RefUnwindSafe for BroadcastSession
impl Send for BroadcastSession
impl Sync for BroadcastSession
impl Unpin for BroadcastSession
impl UnsafeUnpin for BroadcastSession
impl UnwindSafe for BroadcastSession
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more