pub struct PlainClient<'p> { /* private fields */ }Implementations§
Source§impl<'p> PlainClient<'p>
impl<'p> PlainClient<'p>
pub fn bind( selected: SelectedPlainEntry<'p>, policy_generation: u64, page: u32, ) -> Result<Self, Error>
pub fn identity(&self) -> CandidateIdentity
pub fn send_open<S: ServiceIo>( &self, session: &mut S, ) -> Result<OpenTicket, Error>
pub fn send_open_until<S: ServiceIo>( &self, session: &mut S, deadline: u64, ) -> Result<OpenTicket, Error>
pub fn recv_grant_send_credit_request<S: ServiceIo>( &self, session: &mut S, open: &OpenTicket, leaf: u64, ) -> Result<LeafTicket, Error>
pub fn recv_grant_send_credit_request_until<S: ServiceIo>( &self, session: &mut S, open: &OpenTicket, leaf: u64, deadline: u64, ) -> Result<LeafTicket, Error>
pub fn recv_leaf<S: ServiceIo>( &self, session: &mut S, ticket: &LeafTicket, payload_out: &mut [u8], ) -> Result<usize, Error>
pub fn send_cancel<S: ServiceIo>( &self, session: &mut S, open: &OpenTicket, ) -> Result<(), Error>
pub fn send_close<S: ServiceIo>(&self, session: &mut S) -> Result<(), Error>
Auto Trait Implementations§
impl<'p> Freeze for PlainClient<'p>
impl<'p> RefUnwindSafe for PlainClient<'p>
impl<'p> Send for PlainClient<'p>
impl<'p> Sync for PlainClient<'p>
impl<'p> Unpin for PlainClient<'p>
impl<'p> UnsafeUnpin for PlainClient<'p>
impl<'p> UnwindSafe for PlainClient<'p>
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