pub enum ScpSession {
Scp03(Scp03State),
Scp02(Scp02State),
}Expand description
Open secure-channel handle, protocol-tagged (PDD §5.9 return type).
Variants§
Scp03(Scp03State)
Scp02(Scp02State)
Implementations§
Source§impl ScpSession
impl ScpSession
Sourcepub fn security_level(&self) -> u8
pub fn security_level(&self) -> u8
The effective (capped) security level fixed at channel open (§4.1).
Sourcepub fn protocol(&self) -> ScpProtocol
pub fn protocol(&self) -> ScpProtocol
Which SCP protocol this session runs (for report population, §7).
Sourcepub fn session_id(&self) -> u64
pub fn session_id(&self) -> u64
A stable, deterministic session identifier derived from the backend session-slot index (§7 reports carry no timestamp/version, §10.3).
Auto Trait Implementations§
impl Freeze for ScpSession
impl RefUnwindSafe for ScpSession
impl Send for ScpSession
impl Sync for ScpSession
impl Unpin for ScpSession
impl UnsafeUnpin for ScpSession
impl UnwindSafe for ScpSession
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