pub struct EstablishedSession<'a> { /* private fields */ }Implementations§
Source§impl<'a> EstablishedSession<'a>
impl<'a> EstablishedSession<'a>
Sourcepub fn into_protected_channel<B: Bearer>(
self,
bearer: B,
current: &CurrentAuthorityGuard<'_>,
pins: &PinAuthority,
clock: &dyn Fn() -> u64,
) -> Result<ProtectedChannel<'a, B>, ChannelBuildError<'a, B>>
pub fn into_protected_channel<B: Bearer>( self, bearer: B, current: &CurrentAuthorityGuard<'_>, pins: &PinAuthority, clock: &dyn Fn() -> u64, ) -> Result<ProtectedChannel<'a, B>, ChannelBuildError<'a, B>>
One-time handoff. The supplied guard must belong to the endpoint’s exact canonical owner. This performs no transport I/O or ledger release.
Source§impl EstablishedSession<'_>
impl EstablishedSession<'_>
pub const fn transcript(&self) -> StrongDigest
pub const fn role(&self) -> Role
Sourcepub fn with_current<T>(
&mut self,
pins: &PinAuthority,
clock: &dyn Fn() -> u64,
use_keys: impl FnOnce(&SessionBinding, &InstalledSessionKeys) -> Result<T, E>,
) -> Result<T, E>
pub fn with_current<T>( &mut self, pins: &PinAuthority, clock: &dyn Fn() -> u64, use_keys: impl FnOnce(&SessionBinding, &InstalledSessionKeys) -> Result<T, E>, ) -> Result<T, E>
Synchronous host use under the SAME live authority and receipt. Borrowed key references cannot escape this closure. Trusted host code CAN copy exposed key bytes; this is not a confinement boundary against that host. No async IO/drain transfer is provided.
Auto Trait Implementations§
impl<'a> Freeze for EstablishedSession<'a>
impl<'a> RefUnwindSafe for EstablishedSession<'a>
impl<'a> Send for EstablishedSession<'a>
impl<'a> Sync for EstablishedSession<'a>
impl<'a> Unpin for EstablishedSession<'a>
impl<'a> UnsafeUnpin for EstablishedSession<'a>
impl<'a> UnwindSafe for EstablishedSession<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more