[−][src]Struct discortp::discord::IpDiscovery
Packet format for Discord's IP Discovery, used in NAT tunnelling.
A description of fields:
pkt_type
Denotes whether this packet is a request or response.
length
Length (in bytes) of all successive fields.
This controls the string length of address
.
In ordinary use, this should be set to 70.
ssrc
SSRC that the requesting client has been assigned to use over RTP.
address
Null-terminated C-string containing the address of the requester as seen by the server.
Requests should leave this empty.
port
Client's source port, as seen by the server.
Requests may include their destination port.
payload
No payload exists for this packet type: 0-length.
Fields
pkt_type: IpDiscoveryType
length: u16be
ssrc: u32be
address: Vec<u8>
port: u16be
payload: Vec<u8>
Trait Implementations
impl Clone for IpDiscovery
[src]
fn clone(&self) -> IpDiscovery
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for IpDiscovery
[src]
Auto Trait Implementations
impl RefUnwindSafe for IpDiscovery
impl Send for IpDiscovery
impl Sync for IpDiscovery
impl Unpin for IpDiscovery
impl UnwindSafe for IpDiscovery
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,