Struct bililive_core::builder::ConfigBuilder[][src]

pub struct ConfigBuilder<H, R, U, T, S> { /* fields omitted */ }
Expand description

bililive stream config builder.

Stream config can be built via given live room parameters (room id and user id) & danmaku server configs (server token and list).

Helper methods

by_uid fetches room id by given user id.

fetch_conf fetches danmaku server token and list without any input parameter.

Implementations

Construct a new builder with default requester client.

Construct a new builder with given requester client.

Fills room_id and uid by given uid, fetching room_id automatically.

Errors

Returns an error when HTTP api request fails.

Fetches danmaku server configs & uris

Errors

Returns an error when HTTP api request fails.

Consumes the builder and returns StreamConfig

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

Performs the conversion.

Performs the conversion.

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.