pub struct Session<'a, B: Bearer = IpcEndpoint> { /* private fields */ }Implementations§
Source§impl<'a, B: Bearer> Session<'a, B>
impl<'a, B: Bearer> Session<'a, B>
pub fn attach( endpoint: B, peer: ObservedLocator, transcript: StrongDigest, role: u8, owner: &'a mut SessionOwner, ) -> Result<Self, Error>
pub fn profile(&self) -> BearerProfile
pub fn closed(&self) -> bool
Trait Implementations§
Source§impl<B: Bearer> ServiceIo for Session<'_, B>
impl<B: Bearer> ServiceIo for Session<'_, B>
fn send_message(&mut self, header: &Header, body: &[u8]) -> Result<(), Error>
fn recv_control(&mut self) -> Result<(Header, [u8; 80], usize), Error>
fn recv_describe(&mut self) -> Result<(Header, [u8; 96], usize), Error>
fn recv_descriptor(&mut self, page: &mut [u8]) -> Result<(Header, usize), Error>
fn recv_leaf( &mut self, payload: &mut [u8], proof: &mut [u8], ) -> Result<(Header, usize, usize), Error>
fn fail_close(&mut self, e: Error) -> Error
fn closed(&self) -> bool
fn next_transfer_id(&mut self) -> Result<[u8; 16], Error>
fn next_credit_serial(&mut self) -> Result<u64, Error>
Auto Trait Implementations§
impl<'a, B = IpcEndpoint> !UnwindSafe for Session<'a, B>
impl<'a, B> Freeze for Session<'a, B>where
B: Freeze,
impl<'a, B> RefUnwindSafe for Session<'a, B>where
B: RefUnwindSafe,
impl<'a, B> Send for Session<'a, B>where
B: Send,
impl<'a, B> Sync for Session<'a, B>where
B: Sync,
impl<'a, B> Unpin for Session<'a, B>where
B: Unpin,
impl<'a, B> UnsafeUnpin for Session<'a, B>where
B: UnsafeUnpin,
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