pub struct RemoteTableSite { /* private fields */ }Expand description
EvalSite adapter that serves table operations from a local root table.
Trait Implementations§
Source§impl Clone for RemoteTableSite
impl Clone for RemoteTableSite
Source§fn clone(&self) -> RemoteTableSite
fn clone(&self) -> RemoteTableSite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl EvalSite for RemoteTableSite
impl EvalSite for RemoteTableSite
Source§fn address(&self) -> &ServerAddress
fn address(&self) -> &ServerAddress
Returns the address this site answers at.
Source§fn answer(&self, cx: &mut Cx, frame: ServerFrame) -> Result<ServerFrame>
fn answer(&self, cx: &mut Cx, frame: ServerFrame) -> Result<ServerFrame>
Answers
frame, returning the reply frame.Source§fn answer_with_timeout(
&self,
cx: &mut Cx,
frame: ServerFrame,
timeout: Option<Duration>,
) -> Result<ServerFrame>
fn answer_with_timeout( &self, cx: &mut Cx, frame: ServerFrame, timeout: Option<Duration>, ) -> Result<ServerFrame>
Answers
frame with an optional deadline. Defaults to EvalSite::answer.Source§fn close_connection(&self, cx: &mut Cx) -> Result<()>
fn close_connection(&self, cx: &mut Cx) -> Result<()>
Closes any connection backing the site. Defaults to a no-op.
Source§fn stream(
&self,
cx: &mut Cx,
frame: ServerFrame,
sink: &mut dyn StreamSink,
) -> Result<(), Error>
fn stream( &self, cx: &mut Cx, frame: ServerFrame, sink: &mut dyn StreamSink, ) -> Result<(), Error>
Streams the answer to
frame into sink. The default path answers once
and emits a single chunk followed by end.Source§fn as_eval_fabric(&self) -> Option<&dyn EvalFabric>
fn as_eval_fabric(&self) -> Option<&dyn EvalFabric>
Returns this site as an
EvalFabric when it backs one. Defaults to None.Auto Trait Implementations§
impl !RefUnwindSafe for RemoteTableSite
impl !UnwindSafe for RemoteTableSite
impl Freeze for RemoteTableSite
impl Send for RemoteTableSite
impl Sync for RemoteTableSite
impl Unpin for RemoteTableSite
impl UnsafeUnpin for RemoteTableSite
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