Struct librespot_discovery::Builder[][src]

pub struct Builder { /* fields omitted */ }
Expand description

A builder for Discovery.

Implementations

Starts a new builder using the provided device id.

Sets the name to be displayed. Default is "Librespot".

Sets the device type which is visible as icon in other Spotify clients. Default is Speaker.

Sets the port on which it should listen to incoming connections. The default value 0 means any port.

Sets up the Discovery instance.

Errors

If setting up the mdns service or creating the server fails, this function returns an error.

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.

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

Performs the conversion.

Should always be Self

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