pub struct FabricTransport { /* private fields */ }Expand description
A transport that commits operations by delegating to an
EvalFabric.
Reads return locally stored values and change events accumulate locally;
Transport::realize is forwarded to the fabric, whose reply value becomes
the new value of the realized resource.
Implementations§
Source§impl FabricTransport
impl FabricTransport
Sourcepub fn new(fabric: EvalFabricRef) -> Self
pub fn new(fabric: EvalFabricRef) -> Self
A connected, empty transport over fabric (with its own kernel context).
Trait Implementations§
Source§impl Transport for FabricTransport
impl Transport for FabricTransport
Source§fn kind(&self) -> TransportKind
fn kind(&self) -> TransportKind
Which kind of runtime this transport connects to.
Source§fn status(&self) -> SessionStatus
fn status(&self) -> SessionStatus
The current connection status.
Source§fn realize(&mut self, resource: &Symbol, operation: &Expr) -> Result<Expr>
fn realize(&mut self, resource: &Symbol, operation: &Expr) -> Result<Expr>
Realize a checked operation against a resource, returning the new value
(the
realize_final surface). Implementations also record a
ChangeEvent for the resource.Source§fn drain_events(&mut self) -> Vec<ChangeEvent>
fn drain_events(&mut self) -> Vec<ChangeEvent>
Drain the pending change events (the
realize_events surface).Source§fn stream_subscribe(
&mut self,
_stream_id: &Symbol,
) -> Result<StreamInspectorRecord>
fn stream_subscribe( &mut self, _stream_id: &Symbol, ) -> Result<StreamInspectorRecord>
Subscribe to a stream and return browser-visible inspector data.
Source§fn stream_read(
&mut self,
_stream_id: &Symbol,
_limit: usize,
) -> Result<Vec<StreamItem>>
fn stream_read( &mut self, _stream_id: &Symbol, _limit: usize, ) -> Result<Vec<StreamItem>>
Read at most
limit packets from a stream.Source§fn stream_push(
&mut self,
_stream_id: &Symbol,
_envelope: StreamEnvelope,
) -> Result<PushResult>
fn stream_push( &mut self, _stream_id: &Symbol, _envelope: StreamEnvelope, ) -> Result<PushResult>
Push one stream envelope.
Source§fn stream_stats(&self, _stream_id: &Symbol) -> Result<StreamStats>
fn stream_stats(&self, _stream_id: &Symbol) -> Result<StreamStats>
Return current stream stats.
Source§fn stream_inspector(&self, _stream_id: &Symbol) -> Result<StreamInspectorRecord>
fn stream_inspector(&self, _stream_id: &Symbol) -> Result<StreamInspectorRecord>
Return browser-visible inspector data without changing stream state.
Auto Trait Implementations§
impl !RefUnwindSafe for FabricTransport
impl !UnwindSafe for FabricTransport
impl Freeze for FabricTransport
impl Send for FabricTransport
impl Sync for FabricTransport
impl Unpin for FabricTransport
impl UnsafeUnpin for FabricTransport
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