pub enum TurnServerPollRet {
WaitUntil(Instant),
AllocateSocketUdp {
transport: TransportType,
local_addr: SocketAddr,
remote_addr: SocketAddr,
family: AddressFamily,
},
}Expand description
Return value for poll.
Variants§
WaitUntil(Instant)
Wait until the specified time before calling poll() again.
AllocateSocketUdp
Allocate a UDP socket for a client specified by the client’s network 5-tuple.
Fields
§
transport: TransportTypeThe transport of the client asking for an allocation.
§
local_addr: SocketAddrThe TURN server address of the client asking for an allocation.
§
remote_addr: SocketAddrThe client local address of the client asking for an allocation.
§
family: AddressFamilyThe address family of the request for an allocation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TurnServerPollRet
impl RefUnwindSafe for TurnServerPollRet
impl Send for TurnServerPollRet
impl Sync for TurnServerPollRet
impl Unpin for TurnServerPollRet
impl UnwindSafe for TurnServerPollRet
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