#[non_exhaustive]pub enum TransportError {
IcmpHardError,
ConnectionFailed,
NotStun,
}Expand description
What a transport reports about the path of a connectivity check. See
Agent::handle_transport_error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IcmpHardError
A hard ICMP error (destination, port or protocol unreachable) for a datagram sent on the path.
ConnectionFailed
The TCP connection of the path could not be established.
NotStun
What arrived on the path’s TCP connection, in answer to the first check, is not STUN.
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
impl Copy for TransportError
Source§impl Debug for TransportError
impl Debug for TransportError
impl Eq for TransportError
Source§impl PartialEq for TransportError
impl PartialEq for TransportError
impl StructuralPartialEq for TransportError
Auto Trait Implementations§
impl Forget for TransportError
impl Freeze for TransportError
impl Move for TransportError
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnsafeUnpin for TransportError
impl UnwindSafe for TransportError
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