pub struct Simple { /* private fields */ }
Expand description

An opaque simple connection object.

Implementations

Create a new connection to the server.

Params
  • server: Server name, or None for default.
  • name: A descriptive name for this client (application name, …).
  • dir: Open this stream for recording or playback?
  • dev: Sink (resp. source) name, or None for default.
  • stream_name: A descriptive name for this stream (application name, song title, …).
  • ss: The sample type to use.
  • map: The channel map to use, or None for default.
  • attr: Buffering attributes, or None for default.

Write some data to the server.

Wait until all data already written is played by the daemon.

Read some data from the server.

This function blocks until data.len() amount of data has been received from the server, or until an error occurs.

Return the playback or record latency.

Flush the playback or record buffer. This discards any audio in the buffer.

Trait Implementations

Executes the destructor for this type. 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.

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.