pub struct ServiceConsumerProxy { /* private fields */ }
Implementations§
source§impl ServiceConsumerProxy
impl ServiceConsumerProxy
sourcepub fn take_event_stream(&self) -> ServiceConsumerEventStream
pub fn take_event_stream(&self) -> ServiceConsumerEventStream
Get a Stream of events from the remote end of the ServiceConsumer protocol
Panics
Panics if the event stream was already taken.
sourcepub fn list_peers(&self) -> QueryResponseFut<Vec<Peer>>
pub fn list_peers(&self) -> QueryResponseFut<Vec<Peer>>
Returns a list of all peers that are connected to this Overnet. If this list has not been updated since the last call to this method, it waits until new data is available. Concurrent calls to ListPeers will result in channel closure.
Trait Implementations§
source§impl Clone for ServiceConsumerProxy
impl Clone for ServiceConsumerProxy
source§fn clone(&self) -> ServiceConsumerProxy
fn clone(&self) -> ServiceConsumerProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServiceConsumerProxy
impl Debug for ServiceConsumerProxy
source§impl Proxy for ServiceConsumerProxy
impl Proxy for ServiceConsumerProxy
§type Protocol = ServiceConsumerMarker
type Protocol = ServiceConsumerMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more