pub struct Responder<'a> { /* private fields */ }Implementations§
Source§impl<'a> Responder<'a>
impl<'a> Responder<'a>
pub fn new( authority: &'a EndpointAuthority<'a>, reservation: EndpointReservation<'a>, workspace: &'a mut EndpointWorkspace, route: Route, peer: PeerTrust, clock: &dyn Fn() -> u64, ) -> Result<Self, E>
pub fn phase(&self) -> Phase
pub fn signing_commitment(&self) -> Result<SigningCommitment, E>
pub fn receive_step<B: Bearer>( &mut self, b: &mut B, pins: &PinAuthority, clock: &dyn Fn() -> u64, ) -> Result<bool, E>
pub fn sign_server( &mut self, capability: ManagedPairedSigning<'_>, pins: &PinAuthority, clock: &dyn Fn() -> u64, ) -> Result<(), E>
pub fn send_step<B: Bearer>( &mut self, b: &mut B, pins: &PinAuthority, clock: &dyn Fn() -> u64, ) -> Result<bool, E>
pub fn install( &mut self, pins: &PinAuthority, clock: &dyn Fn() -> u64, ) -> Result<EstablishedSession<'a>, E>
pub fn cancel(&mut self)
Auto Trait Implementations§
impl<'a> !UnwindSafe for Responder<'a>
impl<'a> Freeze for Responder<'a>
impl<'a> RefUnwindSafe for Responder<'a>
impl<'a> Send for Responder<'a>
impl<'a> Sync for Responder<'a>
impl<'a> Unpin for Responder<'a>
impl<'a> UnsafeUnpin for Responder<'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