pub struct OpenIpcReceiver { /* private fields */ }Implementations§
Source§impl OpenIpcReceiver
impl OpenIpcReceiver
pub fn new() -> Result<OpenIpcReceiver, JsValue>
pub fn with_channel_id( channel_id: u32, fec_k: usize, fec_n: usize, ) -> Result<OpenIpcReceiver, JsValue>
pub fn with_keypair( channel_id: u32, keypair: &[u8], minimum_epoch: u64, ) -> Result<OpenIpcReceiver, JsValue>
pub fn with_keypair_and_mavlink_channel( channel_id: u32, mavlink_channel_id: u32, keypair: &[u8], minimum_epoch: u64, ) -> Result<OpenIpcReceiver, JsValue>
pub fn push_rtp_packet(&mut self, data: &[u8]) -> Option<Uint8Array>
pub fn push_rtp_packet_detailed( &mut self, data: &[u8], ) -> Result<JsValue, JsValue>
pub fn push_decrypted_fragment( &mut self, data_nonce_hex: &str, fragment: &[u8], ) -> Result<Array, JsValue>
pub fn push_decrypted_80211_frame( &mut self, frame: &[u8], fragment: &[u8], ) -> Result<Array, JsValue>
pub fn push_encrypted_80211_frame( &mut self, frame: &[u8], ) -> Result<Array, JsValue>
pub fn push_rx_transfer(&mut self, transfer: &[u8]) -> Result<Array, JsValue>
pub fn push_rx_transfer_detailed( &mut self, transfer: &[u8], ) -> Result<Array, JsValue>
pub fn push_rx_transfer_detailed_with_options( &mut self, transfer: &[u8], keep_corrupted: bool, ) -> Result<Array, JsValue>
pub fn push_rx_transfer_profiled( &mut self, transfer: &[u8], ) -> Result<Object, JsValue>
pub fn push_rx_transfer_profiled_with_options( &mut self, transfer: &[u8], keep_corrupted: bool, ) -> Result<Object, JsValue>
pub fn fec_counters(&self) -> String
Trait Implementations§
Source§impl From<OpenIpcReceiver> for JsValue
impl From<OpenIpcReceiver> for JsValue
Source§fn from(value: OpenIpcReceiver) -> Self
fn from(value: OpenIpcReceiver) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for OpenIpcReceiver
impl FromWasmAbi for OpenIpcReceiver
Source§impl IntoWasmAbi for OpenIpcReceiver
impl IntoWasmAbi for OpenIpcReceiver
Source§impl LongRefFromWasmAbi for OpenIpcReceiver
impl LongRefFromWasmAbi for OpenIpcReceiver
Source§type Abi = WasmPtr<WasmRefCell<OpenIpcReceiver>>
type Abi = WasmPtr<WasmRefCell<OpenIpcReceiver>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<OpenIpcReceiver>
type Anchor = RcRef<OpenIpcReceiver>
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 OptionFromWasmAbi for OpenIpcReceiver
impl OptionFromWasmAbi for OpenIpcReceiver
Source§impl OptionIntoWasmAbi for OpenIpcReceiver
impl OptionIntoWasmAbi for OpenIpcReceiver
Source§impl RefFromWasmAbi for OpenIpcReceiver
impl RefFromWasmAbi for OpenIpcReceiver
Source§type Abi = WasmPtr<WasmRefCell<OpenIpcReceiver>>
type Abi = WasmPtr<WasmRefCell<OpenIpcReceiver>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<OpenIpcReceiver>
type Anchor = RcRef<OpenIpcReceiver>
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 OpenIpcReceiver
impl RefMutFromWasmAbi for OpenIpcReceiver
Source§type Abi = WasmPtr<WasmRefCell<OpenIpcReceiver>>
type Abi = WasmPtr<WasmRefCell<OpenIpcReceiver>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<OpenIpcReceiver>
type Anchor = RcRefMut<OpenIpcReceiver>
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 OpenIpcReceiver
impl SupportsInstanceProperty for OpenIpcReceiver
impl SupportsStaticProperty for OpenIpcReceiver
Source§impl TryFromJsValue for OpenIpcReceiver
impl TryFromJsValue for OpenIpcReceiver
Source§impl VectorFromWasmAbi for OpenIpcReceiver
impl VectorFromWasmAbi for OpenIpcReceiver
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[OpenIpcReceiver]>
Source§impl VectorIntoWasmAbi for OpenIpcReceiver
impl VectorIntoWasmAbi for OpenIpcReceiver
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[OpenIpcReceiver]>) -> Self::Abi
Source§impl WasmDescribeVector for OpenIpcReceiver
impl WasmDescribeVector for OpenIpcReceiver
Auto Trait Implementations§
impl Freeze for OpenIpcReceiver
impl RefUnwindSafe for OpenIpcReceiver
impl Send for OpenIpcReceiver
impl Sync for OpenIpcReceiver
impl Unpin for OpenIpcReceiver
impl UnsafeUnpin for OpenIpcReceiver
impl UnwindSafe for OpenIpcReceiver
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.