pub enum StartError {
AlreadyStarted,
}Expand description
Error returned when a mediator is started more than once.
A mediator starts its generated event workers and #[medi_task] tasks at
most once. Check is_started before calling start when needed.
Variants§
AlreadyStarted
The mediator has already started its generated workers and tasks.
Trait Implementations§
Source§impl Clone for StartError
impl Clone for StartError
Source§fn clone(&self) -> StartError
fn clone(&self) -> StartError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StartError
Source§impl Debug for StartError
impl Debug for StartError
impl Eq for StartError
Source§impl PartialEq for StartError
impl PartialEq for StartError
impl StructuralPartialEq for StartError
Auto Trait Implementations§
impl Freeze for StartError
impl RefUnwindSafe for StartError
impl Send for StartError
impl Sync for StartError
impl Unpin for StartError
impl UnsafeUnpin for StartError
impl UnwindSafe for StartError
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