pub struct StdioConnectOptions { /* private fields */ }
Implementationsยง
Sourceยงimpl StdioConnectOptions
impl StdioConnectOptions
pub fn loopback(&self) -> bool
Sourcepub fn set_loopback(&mut self, b: bool)
pub fn set_loopback(&mut self, b: bool)
If set to true, messages produced will be feed back to consumers in the same process.
Be careful, if your stream processor consume and produce the same stream key, it will result in an infinite loop.
This option is meant for testing only. Enabling loopback might create overhead where the producer and consumer threads compete for the same Mutex.
Trait Implementationsยง
Sourceยงimpl Clone for StdioConnectOptions
impl Clone for StdioConnectOptions
Sourceยงfn clone(&self) -> StdioConnectOptions
fn clone(&self) -> StdioConnectOptions
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 ConnectOptions for StdioConnectOptions
impl ConnectOptions for StdioConnectOptions
Sourceยงfn set_timeout(&mut self, _: Duration) -> StdioResult<&mut Self>
fn set_timeout(&mut self, _: Duration) -> StdioResult<&mut Self>
This parameter is ignored because connection can never fail
type Error = StdioErr
fn timeout(&self) -> StdioResult<Duration>
Sourceยงimpl Debug for StdioConnectOptions
impl Debug for StdioConnectOptions
Sourceยงimpl Default for StdioConnectOptions
impl Default for StdioConnectOptions
Sourceยงfn default() -> StdioConnectOptions
fn default() -> StdioConnectOptions
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for StdioConnectOptions
impl RefUnwindSafe for StdioConnectOptions
impl Send for StdioConnectOptions
impl Sync for StdioConnectOptions
impl Unpin for StdioConnectOptions
impl UnwindSafe for StdioConnectOptions
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