Struct dendrite::axon_server::control::platform_service_client::PlatformServiceClient[][src]

pub struct PlatformServiceClient<T> { /* fields omitted */ }

Service describing operations for connecting to the AxonServer platform.

Clients are expected to use this service on any of the Platform’s Admin nodes to obtain connection information of the node that it should set up the actual connection with. On that second node, the clients should open an instruction stream (see OpenStream), so that AxonServer and the client application can exchange information and instructions.

Implementations

impl PlatformServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> PlatformServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn get_platform_server(
    &mut self,
    request: impl IntoRequest<ClientIdentification>
) -> Result<Response<PlatformInfo>, Status>
[src]

Obtains connection information for the Server that a Client should use for its connections.

pub async fn open_stream(
    &mut self,
    request: impl IntoStreamingRequest<Message = PlatformInboundInstruction>
) -> Result<Response<Streaming<PlatformOutboundInstruction>>, Status>
[src]

Opens an instruction stream to the Platform, allowing AxonServer to provide management instructions to the application

Trait Implementations

impl<T: Clone> Clone for PlatformServiceClient<T>[src]

impl<T> Debug for PlatformServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for PlatformServiceClient<T>

impl<T> Send for PlatformServiceClient<T> where
    T: Send

impl<T> Sync for PlatformServiceClient<T> where
    T: Sync

impl<T> Unpin for PlatformServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for PlatformServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]