pub struct RelaySessionInfo {
pub session_id: SessionId,
pub client_addr: SocketAddr,
pub peer_connection_id: Vec<u8>,
pub state: SessionState,
pub created_at: Instant,
pub last_activity: Instant,
pub bandwidth_limit: u64,
pub timeout: Duration,
pub bytes_sent: u64,
pub bytes_received: u64,
}
Expand description
Information about a relay session
Fields§
§session_id: SessionId
Session identifier
client_addr: SocketAddr
Client address
peer_connection_id: Vec<u8>
Target peer connection ID
state: SessionState
Current session state
created_at: Instant
Session creation time
last_activity: Instant
Last activity time
bandwidth_limit: u64
Bandwidth limit
timeout: Duration
Session timeout
bytes_sent: u64
Bytes transferred
bytes_received: u64
Total bytes received by the relay session
Trait Implementations§
Source§impl Clone for RelaySessionInfo
impl Clone for RelaySessionInfo
Source§fn clone(&self) -> RelaySessionInfo
fn clone(&self) -> RelaySessionInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for RelaySessionInfo
impl RefUnwindSafe for RelaySessionInfo
impl Send for RelaySessionInfo
impl Sync for RelaySessionInfo
impl Unpin for RelaySessionInfo
impl UnwindSafe for RelaySessionInfo
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