Struct dscfg_client::Client

source ·
pub struct Client<C> { /* private fields */ }
Expand description

DSCFG client

This represents a connection to the DSCFG server and allows manipulating shared configurationn as well as receiving notifictions about changes.

You should usually create it by calling new() function of this crate, but you may use custom stream if you need finer control.

Implementations§

Intantiates Client using provided custom Stream + Sink.

Sends request to set the key to given value.

Returns future which resolves to Client, if the request succeeded.

Sends request for getting value of given key and waits for the answer.

Returns future which resolves to (Val, Self) if successful.

Subscribes for notifications of changes of value of specified key

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.