#[non_exhaustive]pub enum PeerDriverEvent {
MdnsUnavailable(MdnsFailure),
MdnsAvailable {
ipv6: bool,
},
AddressesChanged {
added: Vec<IpAddr>,
removed: Vec<IpAddr>,
},
NetworkChanged,
}Expand description
Something the driver itself reports to the application (PeerDriver::poll_driver_event),
beside the connection’s own events.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
The driver cannot send mDNS for a family: the socket could not be bound, or the system
refused its sends. Told once until it works again. Its names are no longer published
(RTCPeerConnection::set_multicast_dns_publishing) for the candidates gathered next,
and the peer’s .local names of that family will not resolve: the connection goes on
over its other candidates, or fails as ICE does. The driver tries again at the next
gathering and, while datagrams wait, after a back-off (1 s, doubling to 60 s).
MdnsAvailable
mDNS of the family works again (a datagram was sent after a failure).
AddressesChanged
The host’s selected addresses changed (PeerDriverConfig::interface_check_interval):
the sockets of removed are closed, ICE is restarted (answer the negotiation-needed
event with an offer), and the connection was told the network changed.
Fields
NetworkChanged
The host woke from sleep, or the application said the network changed
(PeerDriver::network_changed), with the same addresses: the connection was told
(RTCPeerConnection::network_changed: mDNS starts over, its first questions asking for
a unicast response, RFC 6762 section 5.4).
Trait Implementations§
Source§impl Clone for PeerDriverEvent
impl Clone for PeerDriverEvent
Source§impl Debug for PeerDriverEvent
impl Debug for PeerDriverEvent
impl Eq for PeerDriverEvent
Source§impl PartialEq for PeerDriverEvent
impl PartialEq for PeerDriverEvent
impl StructuralPartialEq for PeerDriverEvent
Auto Trait Implementations§
impl Forget for PeerDriverEvent
impl Freeze for PeerDriverEvent
impl Move for PeerDriverEvent
impl RefUnwindSafe for PeerDriverEvent
impl Send for PeerDriverEventwhere
RawVecInner: Send,
impl Sync for PeerDriverEventwhere
RawVecInner: Sync,
impl Unpin for PeerDriverEvent
impl UnsafeUnpin for PeerDriverEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<IpAddr>: UnsafeUnpin,
impl UnwindSafe for PeerDriverEventwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.