pub struct ConnectionHandle {
pub parity: Parity,
/* private fields */
}Fields§
§parity: ParityThe parity this side should use for allocating request/channel IDs.
Implementations§
Source§impl ConnectionHandle
impl ConnectionHandle
Sourcepub fn connection_id(&self) -> ConnectionId
pub fn connection_id(&self) -> ConnectionId
Returns the connection ID for this handle.
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Return whether this connection is still considered connected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionHandle
impl !RefUnwindSafe for ConnectionHandle
impl Send for ConnectionHandle
impl Sync for ConnectionHandle
impl Unpin for ConnectionHandle
impl UnsafeUnpin for ConnectionHandle
impl !UnwindSafe 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