pub struct WebSocketConnection {
pub rex_id: RexId,
pub assigned_validator: [u8; 96],
pub established_at_timestamp: Option<u64>,
pub url: String,
pub status: ConnectionStatus,
}Expand description
The state of a WebSocket connection account.
This struct tracks an active WebSocket connection that was established by a TEE.
The connection is identified by the rex_id of the Connect operation that created it.
Fields§
§rex_id: RexIdThe RexId that created this connection (from the Connect operation).
assigned_validator: [u8; 96]The authority key (96 bytes BLS12-381) of the validator currently running this WebSocket connection.
All Read operations for this connection will be routed to this validator.
This matches the authority_key field in ValidatorInfo.
established_at_timestamp: Option<u64>The round when the connection was established.
url: StringThe WebSocket URL that the connection is connected to.
status: ConnectionStatusThe current status of the connection.
Trait Implementations§
Source§impl Clone for WebSocketConnection
impl Clone for WebSocketConnection
Source§fn clone(&self) -> WebSocketConnection
fn clone(&self) -> WebSocketConnection
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 moreSource§impl Debug for WebSocketConnection
impl Debug for WebSocketConnection
Source§impl Default for WebSocketConnection
impl Default for WebSocketConnection
Source§impl<'de> Deserialize<'de> for WebSocketConnection
impl<'de> Deserialize<'de> for WebSocketConnection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WebSocketConnection
Source§impl PartialEq for WebSocketConnection
impl PartialEq for WebSocketConnection
Source§fn eq(&self, other: &WebSocketConnection) -> bool
fn eq(&self, other: &WebSocketConnection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WebSocketConnection
impl Serialize for WebSocketConnection
impl StructuralPartialEq for WebSocketConnection
Auto Trait Implementations§
impl Freeze for WebSocketConnection
impl RefUnwindSafe for WebSocketConnection
impl Send for WebSocketConnection
impl Sync for WebSocketConnection
impl Unpin for WebSocketConnection
impl UnsafeUnpin for WebSocketConnection
impl UnwindSafe for WebSocketConnection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.