#[non_exhaustive]pub enum StreamNotice {
Listening {
listener: ListenerId,
tag: u32,
local: SocketAddr,
},
ListenFailed {
listener: ListenerId,
tag: u32,
requested: SocketAddr,
},
Connected {
id: StreamId,
tag: u32,
local: SocketAddr,
remote: SocketAddr,
},
ConnectFailed {
id: StreamId,
tag: u32,
local: SocketAddr,
remote: SocketAddr,
},
Closed {
id: StreamId,
tag: u32,
local: SocketAddr,
remote: SocketAddr,
reset: bool,
},
Resolved {
query: u64,
addresses: Vec<SocketAddr>,
},
ResolvedRecords {
query: u64,
records: Vec<DnsRecord>,
},
ResolvedFamily {
query: u64,
ipv6: bool,
addresses: Vec<SocketAddr>,
},
}Expand description
What a StreamTable reports to its owner, in the order it happened.
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.
Listening
A listener is bound.
ListenFailed
A listener could not be bound.
Connected
A connection the engine asked for is established.
ConnectFailed
A connection the engine asked for could not be established; its queued messages are gone.
Closed
A connection is gone: closed (reset false) or broken (reset true). Not reported
for a connection the engine reset itself.
Resolved
A name the engine asked for was resolved.
Fields
§
addresses: Vec<SocketAddr>The addresses (empty: the name did not resolve).
ResolvedRecords
Records the engine asked for were looked up.
ResolvedFamily
One family of a name the engine asked for was resolved.
Trait Implementations§
Source§impl Clone for StreamNotice
impl Clone for StreamNotice
Source§impl Debug for StreamNotice
impl Debug for StreamNotice
impl Eq for StreamNotice
Source§impl PartialEq for StreamNotice
impl PartialEq for StreamNotice
impl StructuralPartialEq for StreamNotice
Auto Trait Implementations§
impl Forget for StreamNotice
impl Freeze for StreamNotice
impl Move for StreamNotice
impl RefUnwindSafe for StreamNotice
impl Send for StreamNotice
impl Sync for StreamNotice
impl Unpin for StreamNotice
impl UnsafeUnpin for StreamNotice
impl UnwindSafe for StreamNotice
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