pub struct FrameIo<'s, 'a, B: Bearer> { /* private fields */ }Expand description
One bounded effect. No authority lock lives in this transport view.
Implementations§
Source§impl<B: Bearer> FrameIo<'_, '_, B>
impl<B: Bearer> FrameIo<'_, '_, B>
Sourcepub fn queue_record(
&mut self,
current: &CurrentAuthorityGuard<'_>,
pins: &PinAuthority,
clock: &dyn Fn() -> u64,
aad: &[u8; 88],
bytes: &[u8],
) -> Result<(), E>
pub fn queue_record( &mut self, current: &CurrentAuthorityGuard<'_>, pins: &PinAuthority, clock: &dyn Fn() -> u64, aad: &[u8; 88], bytes: &[u8], ) -> Result<(), E>
Seals once into this owner’s actual retained buffer. WouldBlock retains the earlier exact sealed frame and does not consume a new packet number.
Sourcepub fn send_pending(
&mut self,
current: &CurrentAuthorityGuard<'_>,
pins: &PinAuthority,
clock: &dyn Fn() -> u64,
) -> Result<(), E>
pub fn send_pending( &mut self, current: &CurrentAuthorityGuard<'_>, pins: &PinAuthority, clock: &dyn Fn() -> u64, ) -> Result<(), E>
One nonblocking atomic frame send. No wait/retransmission loop here. Adapter-owned partial stream cursors must hide partial writes from Bearer.
Auto Trait Implementations§
impl<'s, 'a, B> !UnwindSafe for FrameIo<'s, 'a, B>
impl<'s, 'a, B> Freeze for FrameIo<'s, 'a, B>
impl<'s, 'a, B> RefUnwindSafe for FrameIo<'s, 'a, B>where
B: RefUnwindSafe,
impl<'s, 'a, B> Send for FrameIo<'s, 'a, B>where
B: Send,
impl<'s, 'a, B> Sync for FrameIo<'s, 'a, B>where
B: Sync,
impl<'s, 'a, B> Unpin for FrameIo<'s, 'a, B>
impl<'s, 'a, B> UnsafeUnpin for FrameIo<'s, 'a, B>
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