[][src]Struct skyway_webrtc_gateway_api::data::ConnectQuery

pub struct ConnectQuery {
    pub peer_id: PeerId,
    pub token: Token,
    pub options: Option<ConnectionQueryOption>,
    pub target_id: PeerId,
    pub params: Option<DataIdWrapper>,
    pub redirect_params: Option<SocketInfo<PhantomId>>,
}

Query for POST /data/connections

It will send as JSON body

API

Fields

peer_id: PeerId

to identify which PeerObject calls to neighbour

token: Token

to show that this program has permission to control PeerObject

options: Option<ConnectionQueryOption>

parameters for DataChannel

target_id: PeerId

connect to the neighbour which has this PeerId

params: Option<DataIdWrapper>

Shows source Data Object which feeds data redirected to nighbour. If this field is not set, DataConnection works as RecvOnly.

redirect_params: Option<SocketInfo<PhantomId>>

Shows destiation socket to which received data is redirected If this field is not set, DataConnection works as SendOnly.

Trait Implementations

impl Clone for ConnectQuery[src]

impl Debug for ConnectQuery[src]

impl<'de> Deserialize<'de> for ConnectQuery[src]

impl PartialEq<ConnectQuery> for ConnectQuery[src]

impl Serialize for ConnectQuery[src]

impl StructuralPartialEq for ConnectQuery[src]

Auto Trait Implementations

impl RefUnwindSafe for ConnectQuery

impl Send for ConnectQuery

impl Sync for ConnectQuery

impl Unpin for ConnectQuery

impl UnwindSafe for ConnectQuery

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.