[−][src]Struct dsf_client::client::Client
Implementations
impl Client
[src]
pub fn new(options: &Options) -> Result<Self, Error>
[src]
Create a new client
pub async fn request<'_>(
&'_ mut self,
rk: RequestKind
) -> Result<ResponseKind, Error>
[src]
&'_ mut self,
rk: RequestKind
) -> Result<ResponseKind, Error>
Issue a request to the daemon using a client instance, returning a response
pub async fn status<'_>(&'_ mut self) -> Result<StatusInfo, Error>
[src]
Fetch daemon status information
pub async fn connect<'_>(
&'_ mut self,
options: ConnectOptions
) -> Result<ConnectInfo, Error>
[src]
&'_ mut self,
options: ConnectOptions
) -> Result<ConnectInfo, Error>
Connect to another DSF instance
pub async fn find<'_>(
&'_ mut self,
options: SearchOptions
) -> Result<PeerInfo, Error>
[src]
&'_ mut self,
options: SearchOptions
) -> Result<PeerInfo, Error>
Search for a peer using the database
pub async fn list<'_>(
&'_ mut self,
options: ListOptions
) -> Result<Vec<ServiceInfo>, Error>
[src]
&'_ mut self,
options: ListOptions
) -> Result<Vec<ServiceInfo>, Error>
List known services
pub async fn info<'_>(
&'_ mut self,
options: InfoOptions
) -> Result<(ServiceHandle, ServiceInfo), Error>
[src]
&'_ mut self,
options: InfoOptions
) -> Result<(ServiceHandle, ServiceInfo), Error>
Fetch information for a given service
pub async fn create<'_>(
&'_ mut self,
options: CreateOptions
) -> Result<ServiceHandle, Error>
[src]
&'_ mut self,
options: CreateOptions
) -> Result<ServiceHandle, Error>
Create a new service with the provided options This MUST be stored locally for reuse
pub async fn register<'_>(
&'_ mut self,
options: RegisterOptions
) -> Result<RegisterInfo, Error>
[src]
&'_ mut self,
options: RegisterOptions
) -> Result<RegisterInfo, Error>
Register a service instance in the distributed database
pub async fn locate<'_>(
&'_ mut self,
options: LocateOptions
) -> Result<(ServiceHandle, LocateInfo), Error>
[src]
&'_ mut self,
options: LocateOptions
) -> Result<(ServiceHandle, LocateInfo), Error>
Locate a service instance in the distributed database This returns a future that will resolve to the desired service or an error
pub async fn publish<'_>(
&'_ mut self,
options: PublishOptions
) -> Result<PublishInfo, Error>
[src]
&'_ mut self,
options: PublishOptions
) -> Result<PublishInfo, Error>
Publish data using an existing service
pub async fn subscribe<'_>(
&'_ mut self,
options: SubscribeOptions
) -> Result<impl Stream<Item = ResponseKind>, Error>
[src]
&'_ mut self,
options: SubscribeOptions
) -> Result<impl Stream<Item = ResponseKind>, Error>
Subscribe to data from a given service
pub async fn data<'_>(
&'_ mut self,
options: ListOptions
) -> Result<Vec<DataInfo>, Error>
[src]
&'_ mut self,
options: ListOptions
) -> Result<Vec<DataInfo>, Error>
Fetch data from a given service
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,