pub struct FeedParams {
pub version: i32,
pub uid: String,
pub native_byte_order: i32,
pub endian_performance: f64,
pub has_ieee754_floats: bool,
pub supports_subnormals: bool,
pub value_size: i32,
pub max_buffer_length: i32,
pub max_chunk_length: i32,
pub hostname: String,
pub source_id: String,
pub session_id: String,
}Expand description
What the client asks for.
Fields§
§version: i32The version to ask for.
uid: StringThe UID of the stream to open.
native_byte_order: i32The byte order of this machine.
endian_performance: f64How fast this machine converts a byte order.
A measured value. A test injects a fixed number, because no conformance test can compare it. SPEC.md 5.2.
has_ieee754_floats: boolTrue when this machine holds IEEE-754 floats.
supports_subnormals: boolTrue when this machine holds subnormal values.
value_size: i32The width of one channel value. Zero for a string stream.
max_buffer_length: i32The buffer length to ask for.
max_chunk_length: i32The chunk length to ask for. Zero means no limit.
hostname: StringThe host name of this machine.
source_id: StringThe source identifier of the stream.
session_id: StringThe session identifier.
Implementations§
Source§impl FeedParams
impl FeedParams
Sourcepub fn to_wire(&self) -> Vec<u8> ⓘ
pub fn to_wire(&self) -> Vec<u8> ⓘ
Write the request line and the header block.
The field order matches src/data_receiver.cpp:170-190. A real liblsl
server reads the names and not the order, but a transcript comparison
needs the same order.
Sourcepub fn to_wire_with(&self, features: &[Token]) -> Vec<u8> ⓘ
pub fn to_wire_with(&self, features: &[Token]) -> Vec<u8> ⓘ
Write the request with a Labstream-Features line, after the fields
of liblsl. With no tokens, the request is the same as
FeedParams::to_wire. docs/extensions.md.