pub enum PortSendError {
UnknownPort {
port_id: PortId,
},
Disconnected {
port_id: PortId,
},
Full {
port_id: PortId,
},
Cancelled {
port_id: PortId,
},
Rejected {
port_id: PortId,
reason: String,
},
}Expand description
Error returned when an output port cannot accept a packet.
Variants§
UnknownPort
The node does not declare the requested output port.
Disconnected
A downstream input has disconnected.
Full
At least one bounded downstream edge is full.
Cancelled
The send was cancelled before it could complete.
Rejected
A validation policy rejected the packet before it entered the graph.
Trait Implementations§
Source§impl Clone for PortSendError
impl Clone for PortSendError
Source§fn clone(&self) -> PortSendError
fn clone(&self) -> PortSendError
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 PortSendError
impl Debug for PortSendError
Source§impl Display for PortSendError
impl Display for PortSendError
Source§impl Error for PortSendError
impl Error for PortSendError
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<PortSendError> for PureflowError
impl From<PortSendError> for PureflowError
Source§fn from(value: PortSendError) -> Self
fn from(value: PortSendError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PortSendError
impl PartialEq for PortSendError
Source§fn eq(&self, other: &PortSendError) -> bool
fn eq(&self, other: &PortSendError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PortSendError
impl StructuralPartialEq for PortSendError
Auto Trait Implementations§
impl Freeze for PortSendError
impl RefUnwindSafe for PortSendError
impl Send for PortSendError
impl Sync for PortSendError
impl Unpin for PortSendError
impl UnsafeUnpin for PortSendError
impl UnwindSafe for PortSendError
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).