[−][src]Struct xi_rpc::RawPeer
An interface to access the other side of the RPC channel. The main purpose is to send RPC requests and notifications to the peer.
A single shared RawPeer
exists for each RpcLoop
; a reference can
be taken with RpcLoop::get_peer()
.
In general, RawPeer
shouldn't be used directly, but behind a pointer as
the Peer
trait object.
Trait Implementations
impl<W: Write + Send + 'static> Peer for RawPeer<W>
[src]
fn box_clone(&self) -> Box<dyn Peer>
[src]
fn send_rpc_notification(&self, method: &str, params: &Value)
[src]
fn send_rpc_request_async(
&self,
method: &str,
params: &Value,
f: Box<dyn Callback>
)
[src]
&self,
method: &str,
params: &Value,
f: Box<dyn Callback>
)
fn send_rpc_request(&self, method: &str, params: &Value) -> Result<Value, Error>
[src]
fn request_is_pending(&self) -> bool
[src]
fn schedule_idle(&self, token: usize)
[src]
fn schedule_timer(&self, after: Instant, token: usize)
[src]
impl<W: Write> Clone for RawPeer<W>
[src]
Auto Trait Implementations
impl<W> Send for RawPeer<W> where
W: Send,
W: Send,
impl<W> Unpin for RawPeer<W>
impl<W> Sync for RawPeer<W> where
W: Send,
W: Send,
impl<W> !UnwindSafe for RawPeer<W>
impl<W> !RefUnwindSafe for RawPeer<W>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,