pub struct Connection {
pub handle: Handle,
pub events: UnboundedReceiver<Event>,
pub server_cert: Option<ServerCert>,
}Expand description
A live connection: the command handle plus the event stream.
Fields§
§handle: Handle§events: UnboundedReceiver<Event>Unbounded so a slow consumer can never stall the reader and miss pings.
server_cert: Option<ServerCert>The server certificate seen during the TLS handshake, for the server info panel.
Auto Trait Implementations§
impl !RefUnwindSafe for Connection
impl !UnwindSafe for Connection
impl Forget for Connection
impl Freeze for Connection
impl Move for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
Blanket Implementations§
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
Mutably borrows from an owned value. Read more