pub struct SocketStateChange {
pub client_id: ClientId,
pub venue: Option<Venue>,
pub endpoint: Ustr,
pub state: SocketState,
}Expand description
Transport-neutral notification that a socket state changed.
Fields§
§client_id: ClientIdThe client ID associated with the transport.
venue: Option<Venue>The venue associated with the transport, if any.
endpoint: UstrStable, non-secret label identifying the endpoint.
state: SocketStateThe current transport state.
Implementations§
Source§impl SocketStateChange
impl SocketStateChange
Sourcepub const fn new(
client_id: ClientId,
venue: Option<Venue>,
endpoint: Ustr,
state: SocketState,
) -> Self
pub const fn new( client_id: ClientId, venue: Option<Venue>, endpoint: Ustr, state: SocketState, ) -> Self
Creates a new SocketStateChange instance.
Trait Implementations§
Source§impl Clone for SocketStateChange
impl Clone for SocketStateChange
Source§fn clone(&self) -> SocketStateChange
fn clone(&self) -> SocketStateChange
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 moreimpl Copy for SocketStateChange
Source§impl Debug for SocketStateChange
impl Debug for SocketStateChange
Source§impl Display for SocketStateChange
impl Display for SocketStateChange
impl Eq for SocketStateChange
Source§impl PartialEq for SocketStateChange
impl PartialEq for SocketStateChange
impl StructuralPartialEq for SocketStateChange
Auto Trait Implementations§
impl Freeze for SocketStateChange
impl RefUnwindSafe for SocketStateChange
impl Send for SocketStateChange
impl Sync for SocketStateChange
impl Unpin for SocketStateChange
impl UnsafeUnpin for SocketStateChange
impl UnwindSafe for SocketStateChange
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more