pub struct Builder { /* private fields */ }
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new recstrm builder.
The queue size will default to 32 records, and there’s no expected number of records.
pub fn queue_size(self, qsize: usize) -> Self
pub fn queue_size_r(&mut self, qsize: usize) -> &mut Self
pub fn num_records(self, nrecs: usize) -> Self
pub fn num_records_r(&mut self, nrecs: usize) -> &mut Self
pub fn build<T, E>(self) -> (Sender<T, E>, Receiver<T, E>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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