pub struct ConnectionHandle { /* private fields */ }Expand description
Handle for one supervised connection process.
Implementations§
Source§impl ConnectionHandle
impl ConnectionHandle
Sourcepub const fn peer_addr(&self) -> Option<SocketAddr>
pub const fn peer_addr(&self) -> Option<SocketAddr>
Returns the peer address if it was available from the accepted stream.
Sourcepub fn request_crash(&self) -> Result<(), ServerError>
pub fn request_crash(&self) -> Result<(), ServerError>
Requests an error exit for tests and supervisor control paths.
§Errors
Returns ServerError when the process is no longer live.
Trait Implementations§
Source§impl Clone for ConnectionHandle
impl Clone for ConnectionHandle
Source§fn clone(&self) -> ConnectionHandle
fn clone(&self) -> ConnectionHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ConnectionHandle
impl !UnwindSafe for ConnectionHandle
impl Freeze for ConnectionHandle
impl Send for ConnectionHandle
impl Sync for ConnectionHandle
impl Unpin for ConnectionHandle
impl UnsafeUnpin for ConnectionHandle
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