pub enum StationTransportError {
MissingTarget(StationId),
QueueFull {
station_id: StationId,
capacity: usize,
},
PacketTooLarge {
budget: usize,
actual: usize,
},
}Expand description
Error produced by bounded in-memory station transport.
Variants§
MissingTarget(StationId)
Target station was not registered.
QueueFull
Target station queue is full.
PacketTooLarge
Packet exceeded the byte budget.
Trait Implementations§
Source§impl Clone for StationTransportError
impl Clone for StationTransportError
Source§fn clone(&self) -> StationTransportError
fn clone(&self) -> StationTransportError
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 moreimpl Copy for StationTransportError
Source§impl Debug for StationTransportError
impl Debug for StationTransportError
Source§impl Display for StationTransportError
impl Display for StationTransportError
impl Eq for StationTransportError
Source§impl Error for StationTransportError
impl Error for StationTransportError
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 StationTransportError
impl PartialEq for StationTransportError
impl StructuralPartialEq for StationTransportError
Auto Trait Implementations§
impl Freeze for StationTransportError
impl RefUnwindSafe for StationTransportError
impl Send for StationTransportError
impl Sync for StationTransportError
impl Unpin for StationTransportError
impl UnsafeUnpin for StationTransportError
impl UnwindSafe for StationTransportError
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