pub struct OpenIpcMockPayloadRuntime { /* private fields */ }Expand description
No-hardware route runtime backed by the core mock payload pipeline.
JavaScript can feed synthetic recovered payload bytes, such as RTP packets, and receive the same profiled batch shape used by real RX transfers.
Implementations§
Source§impl OpenIpcMockPayloadRuntime
impl OpenIpcMockPayloadRuntime
Sourcepub fn new(channel_id: u32) -> OpenIpcMockPayloadRuntime
pub fn new(channel_id: u32) -> OpenIpcMockPayloadRuntime
Create a mock payload runtime for one channel id.
Sourcepub fn set_rtp_reorder_enabled(&mut self, enabled: bool)
pub fn set_rtp_reorder_enabled(&mut self, enabled: bool)
Enable or disable the RTP reorder buffer used by the video route.
Trait Implementations§
Source§impl From<OpenIpcMockPayloadRuntime> for JsValue
impl From<OpenIpcMockPayloadRuntime> for JsValue
Source§fn from(value: OpenIpcMockPayloadRuntime) -> Self
fn from(value: OpenIpcMockPayloadRuntime) -> Self
Converts to this type from the input type.
Source§impl LongRefFromWasmAbi for OpenIpcMockPayloadRuntime
impl LongRefFromWasmAbi for OpenIpcMockPayloadRuntime
Source§type Abi = WasmPtr<WasmRefCell<OpenIpcMockPayloadRuntime>>
type Abi = WasmPtr<WasmRefCell<OpenIpcMockPayloadRuntime>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<OpenIpcMockPayloadRuntime>
type Anchor = RcRef<OpenIpcMockPayloadRuntime>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for OpenIpcMockPayloadRuntime
impl RefFromWasmAbi for OpenIpcMockPayloadRuntime
Source§type Abi = WasmPtr<WasmRefCell<OpenIpcMockPayloadRuntime>>
type Abi = WasmPtr<WasmRefCell<OpenIpcMockPayloadRuntime>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<OpenIpcMockPayloadRuntime>
type Anchor = RcRef<OpenIpcMockPayloadRuntime>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for OpenIpcMockPayloadRuntime
impl RefMutFromWasmAbi for OpenIpcMockPayloadRuntime
Source§type Abi = WasmPtr<WasmRefCell<OpenIpcMockPayloadRuntime>>
type Abi = WasmPtr<WasmRefCell<OpenIpcMockPayloadRuntime>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<OpenIpcMockPayloadRuntime>
type Anchor = RcRefMut<OpenIpcMockPayloadRuntime>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for OpenIpcMockPayloadRuntime
impl SupportsInstanceProperty for OpenIpcMockPayloadRuntime
impl SupportsStaticProperty for OpenIpcMockPayloadRuntime
Source§impl VectorFromWasmAbi for OpenIpcMockPayloadRuntime
impl VectorFromWasmAbi for OpenIpcMockPayloadRuntime
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[OpenIpcMockPayloadRuntime]>
Source§impl VectorIntoWasmAbi for OpenIpcMockPayloadRuntime
impl VectorIntoWasmAbi for OpenIpcMockPayloadRuntime
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[OpenIpcMockPayloadRuntime]>) -> Self::Abi
Source§impl WasmDescribeVector for OpenIpcMockPayloadRuntime
impl WasmDescribeVector for OpenIpcMockPayloadRuntime
Auto Trait Implementations§
impl Freeze for OpenIpcMockPayloadRuntime
impl RefUnwindSafe for OpenIpcMockPayloadRuntime
impl Send for OpenIpcMockPayloadRuntime
impl Sync for OpenIpcMockPayloadRuntime
impl Unpin for OpenIpcMockPayloadRuntime
impl UnsafeUnpin for OpenIpcMockPayloadRuntime
impl UnwindSafe for OpenIpcMockPayloadRuntime
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.