Struct creek_core::write::WriteStreamOptions
source · pub struct WriteStreamOptions<E: Encoder> {
pub additional_opts: E::AdditionalOpts,
pub num_write_blocks: usize,
pub block_size: usize,
pub server_msg_channel_size: Option<usize>,
}
Expand description
Options for a write stream.
Fields§
§additional_opts: E::AdditionalOpts
Any additional encoder-specific options.
num_write_blocks: usize
The number of write blocks to reserve. This must be sufficiently large to ensure there are enough write blocks for the client in the worst case write latency scenerio.
This should be left alone unless you know what you are doing.
block_size: usize
The number of frames in a write block.
This should be left alone unless you know what you are doing.
server_msg_channel_size: Option<usize>
The size of the realtime ring buffer that sends data to and from the stream the the internal IO server. This must be sufficiently large enough to avoid stalling the channels.
Set this to None
to automatically find a generous size based on the other write options.
This should be left as None
unless you know what you are doing.
The default is None
.
Trait Implementations§
source§impl<E: Clone + Encoder> Clone for WriteStreamOptions<E>where
E::AdditionalOpts: Clone,
impl<E: Clone + Encoder> Clone for WriteStreamOptions<E>where
E::AdditionalOpts: Clone,
source§fn clone(&self) -> WriteStreamOptions<E>
fn clone(&self) -> WriteStreamOptions<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug + Encoder> Debug for WriteStreamOptions<E>where
E::AdditionalOpts: Debug,
impl<E: Debug + Encoder> Debug for WriteStreamOptions<E>where
E::AdditionalOpts: Debug,
source§impl<E: Encoder> Default for WriteStreamOptions<E>
impl<E: Encoder> Default for WriteStreamOptions<E>
impl<E: Copy + Encoder> Copy for WriteStreamOptions<E>where
E::AdditionalOpts: Copy,
Auto Trait Implementations§
impl<E> RefUnwindSafe for WriteStreamOptions<E>
impl<E> Send for WriteStreamOptions<E>
impl<E> Sync for WriteStreamOptions<E>
impl<E> Unpin for WriteStreamOptions<E>
impl<E> UnwindSafe for WriteStreamOptions<E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more