pub struct NatStatusResponse {
pub enabled: bool,
pub stun_servers: Vec<String>,
pub turn_servers: Vec<String>,
pub relay_server_bind: Option<String>,
pub candidates: Vec<NatCandidateDto>,
pub peers: Vec<NatPeerDto>,
pub last_refresh: u64,
}Expand description
NAT traversal status response
Fields§
§enabled: boolWhether NAT traversal is enabled in the daemon’s config
stun_servers: Vec<String>Configured STUN servers (host:port)
turn_servers: Vec<String>Configured TURN/relay servers (host:port)
relay_server_bind: Option<String>Address of the locally-bound built-in relay server, if running
candidates: Vec<NatCandidateDto>Locally gathered ICE candidates
peers: Vec<NatPeerDto>Per-peer NAT connectivity state
last_refresh: u64Unix epoch seconds of the last successful STUN refresh
Trait Implementations§
Source§impl ComposeSchema for NatStatusResponse
impl ComposeSchema for NatStatusResponse
Source§impl Debug for NatStatusResponse
impl Debug for NatStatusResponse
Source§impl<'de> Deserialize<'de> for NatStatusResponse
impl<'de> Deserialize<'de> for NatStatusResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NatStatusResponse
impl Serialize for NatStatusResponse
Auto Trait Implementations§
impl Freeze for NatStatusResponse
impl RefUnwindSafe for NatStatusResponse
impl Send for NatStatusResponse
impl Sync for NatStatusResponse
impl Unpin for NatStatusResponse
impl UnsafeUnpin for NatStatusResponse
impl UnwindSafe for NatStatusResponse
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