pub struct Builder { /* private fields */ }Implementations§
Source§impl Builder
impl Builder
Sourcepub fn new(config: WatcherConfig, state: WatcherState) -> Self
pub fn new(config: WatcherConfig, state: WatcherState) -> Self
Methods from Deref<Target = BuilderInner>§
Sourcepub fn config(&self) -> &WatcherConfig
pub 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 fn state(&self) -> &WatcherState
pub 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
Trait Implementations§
Source§impl AsMut<Arc<BuilderInner>> for Builder
impl AsMut<Arc<BuilderInner>> for Builder
Source§fn as_mut(&mut self) -> &mut Arc<BuilderInner>
fn as_mut(&mut self) -> &mut Arc<BuilderInner>
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<Arc<BuilderInner>> for Builder
impl AsRef<Arc<BuilderInner>> for Builder
Source§fn as_ref(&self) -> &Arc<BuilderInner>
fn as_ref(&self) -> &Arc<BuilderInner>
Converts this type into a shared reference of the (usually inferred) input type.
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