pub enum ConnectError {
NoSuchPort {
owner: &'static str,
name: &'static str,
},
WrongInterface {
owner: &'static str,
name: &'static str,
},
NoSubscriber {
owner: &'static str,
name: &'static str,
},
}Expand description
Errors from wiring. Every one is a testbench bug found during elaboration, so the exports panic on them — but the message says exactly which port, on which component, and why.
Variants§
NoSuchPort
No #[port(..)] field of that name on that component.
WrongInterface
The field exists but demands a different interface — a get export
aimed at a put port, or a different transaction type.
NoSubscriber
A subscribe port was connected but its component never said what to do
with the items — no subscribe in its build phase.
Trait Implementations§
Source§impl Clone for ConnectError
impl Clone for ConnectError
Source§fn clone(&self) -> ConnectError
fn clone(&self) -> ConnectError
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 moreSource§impl Debug for ConnectError
impl Debug for ConnectError
Source§impl Display for ConnectError
impl Display for ConnectError
impl Eq for ConnectError
Source§impl PartialEq for ConnectError
impl PartialEq for ConnectError
impl StructuralPartialEq for ConnectError
Auto Trait Implementations§
impl Freeze for ConnectError
impl RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl UnsafeUnpin for ConnectError
impl UnwindSafe for ConnectError
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