pub struct EmbeddedTransport<F> { /* private fields */ }Expand description
Items cross a channel that the host of an embedded program implements however it likes (a
network connection, an in-memory queue, …), keeping the guarantees of the policy F.
Trait Implementations§
Source§impl TransportKind for EmbeddedTransport<FailStop>
For each sender, an in-order prefix of the messages it sent.
impl TransportKind for EmbeddedTransport<FailStop>
For each sender, an in-order prefix of the messages it sent.
Source§type OrderingGuarantee = TotalOrder
type OrderingGuarantee = TotalOrder
The ordering guarantee provided by this transport.
Source§type ConsistencyGuarantee = EventualConsistency
type ConsistencyGuarantee = EventualConsistency
The consistency guarantee this transport can preserve for replicated outputs
(see
NetworkFor::ConsistencyGuarantee).Source§fn networking_info() -> NetworkingInfo
fn networking_info() -> NetworkingInfo
Returns the
NetworkingInfo describing this transport’s configuration.Source§impl TransportKind for EmbeddedTransport<Lossy>
Each sender’s messages in order, any of which may be dropped.
impl TransportKind for EmbeddedTransport<Lossy>
Each sender’s messages in order, any of which may be dropped.
Source§type OrderingGuarantee = TotalOrder
type OrderingGuarantee = TotalOrder
The ordering guarantee provided by this transport.
Source§type ConsistencyGuarantee = NoConsistency
type ConsistencyGuarantee = NoConsistency
The consistency guarantee this transport can preserve for replicated outputs
(see
NetworkFor::ConsistencyGuarantee).Source§fn networking_info() -> NetworkingInfo
fn networking_info() -> NetworkingInfo
Returns the
NetworkingInfo describing this transport’s configuration.Source§impl TransportKind for EmbeddedTransport<LossyDelayedForever>
Messages in any order; a message never delivered counts as delayed forever.
impl TransportKind for EmbeddedTransport<LossyDelayedForever>
Messages in any order; a message never delivered counts as delayed forever.
Source§type OrderingGuarantee = NoOrder
type OrderingGuarantee = NoOrder
The ordering guarantee provided by this transport.
Source§type ConsistencyGuarantee = EventualConsistency
type ConsistencyGuarantee = EventualConsistency
The consistency guarantee this transport can preserve for replicated outputs
(see
NetworkFor::ConsistencyGuarantee).Source§fn networking_info() -> NetworkingInfo
fn networking_info() -> NetworkingInfo
Returns the
NetworkingInfo describing this transport’s configuration.Auto Trait Implementations§
impl<F> Freeze for EmbeddedTransport<F>where
PhantomData<F>: Freeze,
impl<F> RefUnwindSafe for EmbeddedTransport<F>where
PhantomData<F>: RefUnwindSafe,
impl<F> Send for EmbeddedTransport<F>where
PhantomData<F>: Send,
impl<F> Sync for EmbeddedTransport<F>where
PhantomData<F>: Sync,
impl<F> Unpin for EmbeddedTransport<F>where
PhantomData<F>: Unpin,
impl<F> UnsafeUnpin for EmbeddedTransport<F>where
PhantomData<F>: UnsafeUnpin,
impl<F> UnwindSafe for EmbeddedTransport<F>where
PhantomData<F>: UnwindSafe,
Blanket Implementations§
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<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 moreCreates a shared type from an unshared type.