pub struct BuilderInner { /* private fields */ }Implementations§
Source§impl BuilderInner
impl BuilderInner
Sourcepub fn new(config: WatcherConfig, state: WatcherState) -> Self
pub fn new(config: WatcherConfig, state: WatcherState) -> Self
Sourcepub fn from_config(config: WatcherConfig) -> Self
pub fn from_config(config: WatcherConfig) -> Self
returns a new instance of the builder initialized with the given configuration
Sourcepub fn from_state(state: WatcherState) -> Self
pub fn from_state(state: WatcherState) -> Self
returns a new instance of the builder initialized with the given state
Sourcepub const fn config(&self) -> &WatcherConfig
pub const fn config(&self) -> &WatcherConfig
returns an immutable reference to the current configuration of the pipeline
Sourcepub fn config_mut(&mut self) -> &mut WatcherConfig
pub fn config_mut(&mut self) -> &mut WatcherConfig
returns a mutable reference to the current configuration of the pipeline
Sourcepub const fn state(&self) -> &WatcherState
pub const fn state(&self) -> &WatcherState
returns an immutable reference to the pipelines current state
Sourcepub fn state_mut(&mut self) -> &mut WatcherState
pub fn state_mut(&mut self) -> &mut WatcherState
returns a mutable reference to the pipelines current state
Sourcepub fn set_config(&mut self, config: WatcherConfig) -> &mut Self
pub fn set_config(&mut self, config: WatcherConfig) -> &mut Self
set the configuration of the pipeline and return a mutable reference to the instance
Sourcepub fn set_state(&mut self, state: WatcherState) -> &mut Self
pub fn set_state(&mut self, state: WatcherState) -> &mut Self
set the state of the pipeline and return a mutable reference to the instance
Sourcepub fn with_config(self, config: WatcherConfig) -> Self
pub fn with_config(self, config: WatcherConfig) -> Self
consumes the current instance to create another with the given configuration
Sourcepub fn with_state(self, state: WatcherState) -> Self
pub fn with_state(self, state: WatcherState) -> Self
consumes the current instance to create another with the given state
Trait Implementations§
Source§impl Clone for BuilderInner
impl Clone for BuilderInner
Source§fn clone(&self) -> BuilderInner
fn clone(&self) -> BuilderInner
Returns a duplicate 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 Debug for BuilderInner
impl Debug for BuilderInner
Auto Trait Implementations§
impl Freeze for BuilderInner
impl RefUnwindSafe for BuilderInner
impl Send for BuilderInner
impl Sync for BuilderInner
impl Unpin for BuilderInner
impl UnwindSafe for BuilderInner
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