pub enum Accepted {
Conn(Conn),
Rejected(String),
Unidentified(PeerRefusal),
Vanished,
}Expand description
Outcome of Listener::accept: an authenticated connection, a rejected peer, or one that
left before it could be identified.
Variants§
Conn(Conn)
The peer was authenticated as the current user.
Rejected(String)
The peer failed OS-level authentication and was closed unread. The reason is the typed peer error, content-free.
Unidentified(PeerRefusal)
The peer could not be identified although its process exists, for example a client at a higher integrity level than this host (Windows). Closed unread. Carries the pid, the image path and a stable kind so the host can name the program (rightkit#1287).
Vanished
The peer left before it could be identified (a probe, or the shutdown wake-up). Closed; not worth a rejection event.
Auto Trait Implementations§
impl !RefUnwindSafe for Accepted
impl !Sync for Accepted
impl !UnwindSafe for Accepted
impl Freeze for Accepted
impl Send for Accepted
impl Unpin for Accepted
impl UnsafeUnpin for Accepted
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