pub struct EndpointManagerProxy { /* private fields */ }
Implementations§
source§impl EndpointManagerProxy
impl EndpointManagerProxy
sourcepub fn take_event_stream(&self) -> EndpointManagerEventStream
pub fn take_event_stream(&self) -> EndpointManagerEventStream
Get a Stream of events from the remote end of the EndpointManager protocol
Panics
Panics if the event stream was already taken.
sourcepub fn list_endpoints(&self) -> QueryResponseFut<Vec<String>>
pub fn list_endpoints(&self) -> QueryResponseFut<Vec<String>>
Lists endpoints by name.
sourcepub fn create_endpoint(
&self,
name: &str,
config: &mut EndpointConfig
) -> QueryResponseFut<(i32, Option<ClientEnd<EndpointMarker>>)>
pub fn create_endpoint( &self, name: &str, config: &mut EndpointConfig ) -> QueryResponseFut<(i32, Option<ClientEnd<EndpointMarker>>)>
Creates endpoint with given name and config.
sourcepub fn get_endpoint(
&self,
name: &str
) -> QueryResponseFut<Option<ClientEnd<EndpointMarker>>>
pub fn get_endpoint( &self, name: &str ) -> QueryResponseFut<Option<ClientEnd<EndpointMarker>>>
Gets a handle to an endpoint.
Trait Implementations§
source§impl Clone for EndpointManagerProxy
impl Clone for EndpointManagerProxy
source§fn clone(&self) -> EndpointManagerProxy
fn clone(&self) -> EndpointManagerProxy
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 EndpointManagerProxy
impl Debug for EndpointManagerProxy
source§impl EndpointManagerProxyInterface for EndpointManagerProxy
impl EndpointManagerProxyInterface for EndpointManagerProxy
type ListEndpointsResponseFut = QueryResponseFut<Vec<String, Global>>
fn list_endpoints(&self) -> Self::ListEndpointsResponseFut
type CreateEndpointResponseFut = QueryResponseFut<(i32, Option<ClientEnd<EndpointMarker>>)>
fn create_endpoint( &self, name: &str, config: &mut EndpointConfig ) -> Self::CreateEndpointResponseFut
type GetEndpointResponseFut = QueryResponseFut<Option<ClientEnd<EndpointMarker>>>
fn get_endpoint(&self, name: &str) -> Self::GetEndpointResponseFut
source§impl Proxy for EndpointManagerProxy
impl Proxy for EndpointManagerProxy
§type Protocol = EndpointManagerMarker
type Protocol = EndpointManagerMarker
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