pub struct LocalTransport {
pub replicated: Vec<ActionEnvelope>,
}Expand description
A transport that only replicates locally (no host); records every replicated envelope for a caller/test to inspect. The default the toolkit installs when a session has no peer/host wiring yet.
Fields§
§replicated: Vec<ActionEnvelope>Implementations§
Trait Implementations§
Source§impl ActionTransport for LocalTransport
impl ActionTransport for LocalTransport
Source§fn replicate(&mut self, env: &ActionEnvelope)
fn replicate(&mut self, env: &ActionEnvelope)
Replicate a locally-applied action to peers so they can
replay it.Source§fn submit_to_host(&mut self, _env: &ActionEnvelope) -> HostDecision
fn submit_to_host(&mut self, _env: &ActionEnvelope) -> HostDecision
Submit a
ServerPreferred action to a host for authoritative
execution. Default is unavailable, so a local-only transport fails
closed for host-authoritative actions.Auto Trait Implementations§
impl Forget for LocalTransport
impl Freeze for LocalTransport
impl Move for LocalTransport
impl RefUnwindSafe for LocalTransport
impl Send for LocalTransport
impl Sync for LocalTransport
impl Unpin for LocalTransport
impl UnsafeUnpin for LocalTransport
impl UnwindSafe for LocalTransport
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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