pub enum RouterError {
Exists(String),
Unknown(String),
Full,
NotAnOutput(String),
NotAnInput(String),
Duplicate(String, String),
Cycle(String),
Device,
Busy,
}Expand description
Why the router refused a change.
Variants§
Exists(String)
An endpoint with this id exists already.
Unknown(String)
No endpoint with this id.
Full
MAX_ENDPOINTS are in use.
NotAnOutput(String)
A route must start at a source, an input or a bus output.
NotAnInput(String)
A route must end at a bus input, a tap or the device.
Duplicate(String, String)
The same two endpoints are routed twice.
Cycle(String)
The routes would feed a bus back into itself (the bus named).
Device
The device cannot be removed.
Busy
The audio side has not taken the earlier changes yet (it is not running); try again once it renders.
Trait Implementations§
Source§impl Clone for RouterError
impl Clone for RouterError
Source§impl Debug for RouterError
impl Debug for RouterError
Source§impl Display for RouterError
impl Display for RouterError
impl Eq for RouterError
Source§impl Error for RouterError
impl Error for RouterError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RouterError
impl PartialEq for RouterError
impl StructuralPartialEq for RouterError
Auto Trait Implementations§
impl Forget for RouterError
impl Freeze for RouterError
impl Move for RouterError
impl RefUnwindSafe for RouterError
impl Send for RouterErrorwhere
RawVecInner: Send,
impl Sync for RouterErrorwhere
RawVecInner: Sync,
impl Unpin for RouterError
impl UnsafeUnpin for RouterError
impl UnwindSafe for RouterErrorwhere
RawVecInner: 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