Struct libp2p_wasm_ext::ffi::ConnectionEvent [−][src]
#[repr(transparent)]pub struct ConnectionEvent { /* fields omitted */ }
Type of the object that represents an event containing a new connection with a remote.
Implementations
impl ConnectionEvent[src]
impl ConnectionEvent[src]pub fn connection(&self) -> Connection[src]
The Connection object for communication with the remote.
impl ConnectionEvent[src]
impl ConnectionEvent[src]pub fn observed_addr(&self) -> String[src]
The address we observe for the remote connection.
impl ConnectionEvent[src]
impl ConnectionEvent[src]pub fn local_addr(&self) -> String[src]
The address we are listening on, that received the remote connection.
Trait Implementations
impl AsRef<ConnectionEvent> for ConnectionEvent[src]
impl AsRef<ConnectionEvent> for ConnectionEvent[src]fn as_ref(&self) -> &ConnectionEvent[src]
impl Deref for ConnectionEvent[src]
impl Deref for ConnectionEvent[src]impl From<ConnectionEvent> for JsValue[src]
impl From<ConnectionEvent> for JsValue[src]fn from(obj: ConnectionEvent) -> JsValue[src]
impl From<JsValue> for ConnectionEvent[src]
impl From<JsValue> for ConnectionEvent[src]fn from(obj: JsValue) -> ConnectionEvent[src]
impl FromWasmAbi for ConnectionEvent[src]
impl FromWasmAbi for ConnectionEvent[src]impl IntoWasmAbi for ConnectionEvent[src]
impl IntoWasmAbi for ConnectionEvent[src]impl<'a> IntoWasmAbi for &'a ConnectionEvent[src]
impl<'a> IntoWasmAbi for &'a ConnectionEvent[src]impl JsCast for ConnectionEvent[src]
impl JsCast for ConnectionEvent[src]fn instanceof(val: &JsValue) -> bool[src]
fn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
pub fn has_type<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
pub fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, [src]
T: JsCast,
pub fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, [src]
T: JsCast,
pub fn unchecked_into<T>(self) -> T where
T: JsCast, [src]
T: JsCast,
pub fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
T: JsCast,
pub fn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
pub fn is_type_of(val: &JsValue) -> bool[src]
impl OptionFromWasmAbi for ConnectionEvent[src]
impl OptionFromWasmAbi for ConnectionEvent[src]impl OptionIntoWasmAbi for ConnectionEvent[src]
impl OptionIntoWasmAbi for ConnectionEvent[src]impl<'a> OptionIntoWasmAbi for &'a ConnectionEvent[src]
impl<'a> OptionIntoWasmAbi for &'a ConnectionEvent[src]impl RefFromWasmAbi for ConnectionEvent[src]
impl RefFromWasmAbi for ConnectionEvent[src]type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self are recovered from.
type Anchor = ManuallyDrop<ConnectionEvent>
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. Read more
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor[src]
impl WasmDescribe for ConnectionEvent[src]
impl WasmDescribe for ConnectionEvent[src]Auto Trait Implementations
impl RefUnwindSafe for ConnectionEvent
impl !Send for ConnectionEvent
impl !Sync for ConnectionEvent
impl Unpin for ConnectionEvent
impl UnwindSafe for ConnectionEvent
Blanket Implementations
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi