pub struct Workspace<I> { /* private fields */ }Expand description
Workspace.
Implementations§
Source§impl<I> Workspace<I>where
I: Debug,
impl<I> Workspace<I>where
I: Debug,
Sourcepub fn add_workflow(&self) -> Workflow<I>
pub fn add_workflow(&self) -> Workflow<I>
Adds a workflow to the workspace.
Sourcepub fn add_source<T>(&self) -> usizewhere
T: Any,
pub fn add_source<T>(&self) -> usizewhere
T: Any,
Adds a source to the workspace.
Sourcepub fn add_action<T, S, A>(&self, from: S, action: A) -> usize
pub fn add_action<T, S, A>(&self, from: S, action: A) -> usize
Adds an action to the workspace.
Sourcepub fn into_builder(self) -> Builder<I>
pub fn into_builder(self) -> Builder<I>
Consumes the workspace and returns the builder.
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Workspace<I>
impl<I> !RefUnwindSafe for Workspace<I>
impl<I> !Send for Workspace<I>
impl<I> !Sync for Workspace<I>
impl<I> Unpin for Workspace<I>
impl<I> !UnwindSafe for Workspace<I>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, E> IntoReport<T, E> for Twhere
E: Error,
impl<T, E> IntoReport<T, E> for Twhere
E: Error,
Source§fn into_report(self) -> Result<Report<T>, E>
fn into_report(self) -> Result<Report<T>, E>
Creates a report from a value T and wraps it in a result.
§Examples
use std::io::Error;
use zrx_diagnostic::report::IntoReport;
// Define function returning a value
fn f() -> impl IntoReport<i32, Error> {
42
}
// Invoke function and create report
let res = f().into_report();