pub struct CometdClientBuilder<'a, 'b, 'c, 'd, 'e> { /* private fields */ }
Expand description

A builder to construct CometdClient.

Implementations§

Construct a new ClientBuilder.

Return a CometdClient.

Example
use cometd_client::CometdClientBuilder;

let client = CometdClientBuilder::new(&"http://[::1]:1025/notifications/".parse()?)
    .build()?;

Set cometd server handshake url path.

Example
use cometd_client::CometdClientBuilder;

let app = CometdClientBuilder::new(&"http://[::1]:1025/notifications/".parse()?)
    .handshake_base_path("hand/") // http://[::1]:1025/notifications/hand/handshake
    .build()?;

Set cometd server subscribe url path.

Example
use cometd_client::CometdClientBuilder;

let app = CometdClientBuilder::new(&"http://[::1]:1025/notifications/".parse()?)
    .subscribe_base_path("sub/") // http://[::1]:1025/notifications/sub/
    .build()?;

Set cometd server connect url path.

Example
use cometd_client::CometdClientBuilder;

let app = CometdClientBuilder::new(&"http://[::1]:1025/notifications/".parse()?)
    .connect_base_path("con/") // http://[::1]:1025/notifications/con/connect
    .build()?;

Set cometd server disconnect url path.

Example
use cometd_client::CometdClientBuilder;

let app = CometdClientBuilder::new(&"http://[::1]:1025/notifications/".parse()?)
    .connect_base_path("discon/") // http://[::1]:1025/notifications/discon/disconnect
    .build()?;

Set timeout option in handshake request.

Set interval option in handshake request.

Set interval option in handshake request.

Set cookie.

Set cookies.

Trait Implementations§

Formats the value using the given formatter. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more