#[non_exhaustive]pub struct LinkProtection {
pub disable: bool,
pub revertive: Option<bool>,
}Expand description
The link-protection statement: a backup link takes over when the primary fails.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.disable: bool§revertive: Option<bool>Some(true) for revertive, Some(false) for non-revertive.
Trait Implementations§
Source§impl Clone for LinkProtection
impl Clone for LinkProtection
Source§impl Debug for LinkProtection
impl Debug for LinkProtection
impl Eq for LinkProtection
Source§impl PartialEq for LinkProtection
impl PartialEq for LinkProtection
impl StructuralPartialEq for LinkProtection
Auto Trait Implementations§
impl Forget for LinkProtection
impl Freeze for LinkProtection
impl Move for LinkProtection
impl RefUnwindSafe for LinkProtection
impl Send for LinkProtection
impl Sync for LinkProtection
impl Unpin for LinkProtection
impl UnsafeUnpin for LinkProtection
impl UnwindSafe for LinkProtection
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