pub struct Hooks {
pub call_id: String,
pub control: Arc<Mutex<SendStream>>,
pub on_link_closed: Arc<dyn Fn(&str) + Send + Sync>,
pub on_caps: Arc<dyn Fn(Vec<String>, Vec<String>) + Send + Sync>,
pub audio: Arc<MediaStats>,
pub peer_video: bool,
pub share: Arc<ShareInput>,
}Expand description
What the track needs from the session while it runs.
Fields§
§call_id: String§control: Arc<Mutex<SendStream>>The call’s control stream, for keyframe requests.
on_link_closed: Arc<dyn Fn(&str) + Send + Sync>The webview’s socket went away: the session tells the peer our video is off.
on_caps: Arc<dyn Fn(Vec<String>, Vec<String>) + Send + Sync>The webview reported what it can encode and decode.
audio: Arc<MediaStats>The audio track’s counters: its refused datagrams are video’s first alarm.
peer_video: boolThe peer declared decoders in its offer or answer. A peer that did not runs a build whose control reader stops at the first message it does not know, so it is never sent one.
Where the shared screen’s sound goes on its way to the engine.
Auto Trait Implementations§
impl !RefUnwindSafe for Hooks
impl !UnwindSafe for Hooks
impl Forget for Hooks
impl Freeze for Hooks
impl Move for Hooks
impl Send for Hooks
impl Sync for Hooks
impl Unpin for Hooks
impl UnsafeUnpin for Hooks
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
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