pub struct StationSession {
pub profile: Profile,
pub challenge: Vec<u8>,
pub leaf: Vec<u8>,
pub puzzle_difficulty: u32,
pub puzzle_mode: PuzzleMode,
pub capabilities: u64,
pub now_ms: i64,
pub v5: Option<StationV5>,
}Expand description
What a station brings to a CONNECT check: its profile, the challenge bytes
it sent, the leaf DER this connection presented, its puzzle difficulty and
mode, its capability bits, the time in milliseconds, and what it binds a v5
session with. Without v5 it answers only version 4.
Fields§
§profile: Profile§challenge: Vec<u8>§leaf: Vec<u8>§puzzle_difficulty: u32§puzzle_mode: PuzzleMode§capabilities: u64§now_ms: i64§v5: Option<StationV5>Trait Implementations§
Source§impl Clone for StationSession
impl Clone for StationSession
Auto Trait Implementations§
impl !RefUnwindSafe for StationSession
impl !UnwindSafe for StationSession
impl Freeze for StationSession
impl Send for StationSession
impl Sync for StationSession
impl Unpin for StationSession
impl UnsafeUnpin for StationSession
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