pub enum PortRecvError {
UnknownPort {
port_id: PortId,
},
Disconnected {
port_id: PortId,
},
Cancelled {
port_id: PortId,
},
}Expand description
Error returned when an input port cannot provide a packet.
Variants§
UnknownPort
The node does not declare the requested input port.
Disconnected
All upstream senders for this input have disconnected.
Cancelled
The receive was cancelled before it could complete.
Trait Implementations§
Source§impl Clone for PortRecvError
impl Clone for PortRecvError
Source§fn clone(&self) -> PortRecvError
fn clone(&self) -> PortRecvError
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 PortRecvError
impl Debug for PortRecvError
Source§impl Display for PortRecvError
impl Display for PortRecvError
Source§impl Error for PortRecvError
impl Error for PortRecvError
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 From<PortRecvError> for PureflowError
impl From<PortRecvError> for PureflowError
Source§fn from(value: PortRecvError) -> Self
fn from(value: PortRecvError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PortRecvError
impl PartialEq for PortRecvError
Source§fn eq(&self, other: &PortRecvError) -> bool
fn eq(&self, other: &PortRecvError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PortRecvError
impl StructuralPartialEq for PortRecvError
Auto Trait Implementations§
impl Freeze for PortRecvError
impl RefUnwindSafe for PortRecvError
impl Send for PortRecvError
impl Sync for PortRecvError
impl Unpin for PortRecvError
impl UnsafeUnpin for PortRecvError
impl UnwindSafe for PortRecvError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).