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: SessionIdSession identifier
client_addr: SocketAddrClient address
peer_connection_id: Vec<u8>Target peer connection ID
state: SessionStateCurrent session state
created_at: InstantSession creation time
last_activity: InstantLast activity time
bandwidth_limit: u64Bandwidth limit
timeout: DurationSession timeout
bytes_sent: u64Bytes transferred
bytes_received: u64Total 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