pub enum RelayError {
Stopped,
Busy,
NotListening,
NothingHeld,
NothingAwaited,
Frame(LorawanError),
Carrier(Carrier),
Limited,
Filtered,
Foreign,
Configuration,
Device(DeviceError),
}Expand description
Why a relay did not do what a frame or a call asked.
Variants§
Stopped
The relay is not scanning.
Busy
A forwarded uplink is still waiting to go out.
NotListening
No wake-on-radio frame announced an uplink to listen for.
NothingHeld
No forwarded uplink is waiting to go out.
NothingAwaited
No forwarded uplink is waiting on the network’s answer.
Frame(LorawanError)
The frame did not decode or verify.
Carrier(Carrier)
A frame names a carrier the relay cannot hear or send on.
Limited
A forwarding limit is reached.
Filtered
The join request filter drops the request.
Foreign
The uplink is from another device than the WOR frame named.
Configuration
The relay configuration uses a channel the relay cannot scan, or scans too often for its data rates.
Device(DeviceError)
The relay’s own device refused.
Trait Implementations§
Source§impl Clone for RelayError
impl Clone for RelayError
Source§fn clone(&self) -> RelayError
fn clone(&self) -> RelayError
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 RelayError
Source§impl Debug for RelayError
impl Debug for RelayError
Source§impl Display for RelayError
impl Display for RelayError
impl Eq for RelayError
Source§impl Error for RelayError
impl Error for RelayError
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<DeviceError> for RelayError
impl From<DeviceError> for RelayError
Source§fn from(error: DeviceError) -> RelayError
fn from(error: DeviceError) -> RelayError
Converts to this type from the input type.
Source§impl PartialEq for RelayError
impl PartialEq for RelayError
impl StructuralPartialEq for RelayError
Auto Trait Implementations§
impl Freeze for RelayError
impl RefUnwindSafe for RelayError
impl Send for RelayError
impl Sync for RelayError
impl Unpin for RelayError
impl UnsafeUnpin for RelayError
impl UnwindSafe for RelayError
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