pub struct Error<State: RegulatorState> {
    pub error: Error,
    pub regulator: Regulator<State>,
}Expand description
An error that can occur when trying to convert a Regulator between states.
Fields§
§error: ErrorThe error that occurred.
regulator: Regulator<State>The regulator that caused the error, so that the operation may be retried.
Auto Trait Implementations§
impl<State> Freeze for Error<State>
impl<State> RefUnwindSafe for Error<State>where
    State: RefUnwindSafe,
impl<State> Send for Error<State>
impl<State> Sync for Error<State>
impl<State> Unpin for Error<State>where
    State: Unpin,
impl<State> UnwindSafe for Error<State>where
    State: UnwindSafe,
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> PinInit<T> for T
 
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
 
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes 
slot. Read more