#[non_exhaustive]pub enum LearnRefusal {
Reserved,
Direct,
Full,
}Expand description
Why a learning claim changed nothing.
It is #[non_exhaustive], so a new refusal isn’t a breaking change: a
match needs a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Reserved
Network 0 or 0xFFFF, which name no single network.
Direct
The network is directly attached, and learning never changes that.
Full
The network is new and the table is full.
Trait Implementations§
Source§impl Clone for LearnRefusal
impl Clone for LearnRefusal
Source§fn clone(&self) -> LearnRefusal
fn clone(&self) -> LearnRefusal
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 LearnRefusal
Source§impl Debug for LearnRefusal
impl Debug for LearnRefusal
Source§impl Display for LearnRefusal
impl Display for LearnRefusal
impl Eq for LearnRefusal
Source§impl Error for LearnRefusal
impl Error for LearnRefusal
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 LearnRefusal
impl PartialEq for LearnRefusal
impl StructuralPartialEq for LearnRefusal
Auto Trait Implementations§
impl Freeze for LearnRefusal
impl RefUnwindSafe for LearnRefusal
impl Send for LearnRefusal
impl Sync for LearnRefusal
impl Unpin for LearnRefusal
impl UnsafeUnpin for LearnRefusal
impl UnwindSafe for LearnRefusal
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