pub struct DescribeClient { /* private fields */ }Implementations§
Source§impl DescribeClient
impl DescribeClient
pub fn bind( identity: CandidateIdentity, policy_generation: u64, ) -> Result<Self, Error>
pub fn identity(&self) -> CandidateIdentity
pub fn send_header_describe<S: ServiceIo>( &self, session: &mut S, ) -> Result<DescribeTicket, Error>
pub fn send_index_describe<S: ServiceIo>( &self, session: &mut S, offset: u64, chunk: u32, total: u64, ) -> Result<DescribeTicket, Error>
pub fn send_body_describe<S: ServiceIo>( &self, session: &mut S, offset: u64, chunk: u32, total: u64, number: u32, ) -> Result<DescribeTicket, Error>
pub fn send_entry_page_describe<S: ServiceIo>( &self, session: &mut S, offset: u64, chunk: u32, total: u64, number: u32, ) -> Result<DescribeTicket, Error>
pub fn recv_header_page<S: ServiceIo>( &self, session: &mut S, ticket: &DescribeTicket, out: &mut [u8; 64], ) -> Result<(), Error>
pub fn recv_index_page<S: ServiceIo>( &self, session: &mut S, ticket: &DescribeTicket, out: &mut [u8], ) -> Result<usize, Error>
pub fn recv_body_page<S: ServiceIo>( &self, session: &mut S, ticket: &DescribeTicket, out: &mut [u8], ) -> Result<usize, Error>
pub fn recv_entry_page<S: ServiceIo>( &self, session: &mut S, ticket: &DescribeTicket, out: &mut [u8], ) -> Result<usize, Error>
Auto Trait Implementations§
impl Freeze for DescribeClient
impl RefUnwindSafe for DescribeClient
impl Send for DescribeClient
impl Sync for DescribeClient
impl Unpin for DescribeClient
impl UnsafeUnpin for DescribeClient
impl UnwindSafe for DescribeClient
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