pub struct SetInterfaceState {
pub interface: InterfaceName,
pub state: AdministrativeState,
}Expand description
Imperative operation to set an interface’s administrative state.
Fields§
§interface: InterfaceNameInterface to modify.
state: AdministrativeStateRequested state.
Implementations§
Source§impl SetInterfaceState
impl SetInterfaceState
Sourcepub fn new(interface: InterfaceName, state: AdministrativeState) -> Self
pub fn new(interface: InterfaceName, state: AdministrativeState) -> Self
Creates the operation for one interface and state.
Trait Implementations§
Source§impl Clone for SetInterfaceState
impl Clone for SetInterfaceState
Source§impl Debug for SetInterfaceState
impl Debug for SetInterfaceState
impl Eq for SetInterfaceState
Source§impl PartialEq for SetInterfaceState
impl PartialEq for SetInterfaceState
impl StructuralPartialEq for SetInterfaceState
Auto Trait Implementations§
impl Freeze for SetInterfaceState
impl RefUnwindSafe for SetInterfaceState
impl Send for SetInterfaceState
impl Sync for SetInterfaceState
impl Unpin for SetInterfaceState
impl UnsafeUnpin for SetInterfaceState
impl UnwindSafe for SetInterfaceState
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