pub struct VlanInterface { /* private fields */ }Implementations§
Source§impl VlanInterface
impl VlanInterface
pub fn copy_all(preferences: &Preferences) -> Vec<Self>
pub fn copy_available_physical_interfaces() -> Vec<NetworkInterface>
pub fn create( preferences: &Preferences, physical: &NetworkInterface, tag: i32, ) -> Result<Self>
pub fn options(&self) -> Option<PropertyList>
pub fn physical_interface(&self) -> Option<NetworkInterface>
pub fn tag(&self) -> Result<Option<i32>>
pub fn remove(&self) -> Result<()>
pub fn set_localized_display_name(&self, name: &str) -> Result<()>
pub fn set_options(&self, options: &PropertyList) -> Result<()>
pub fn set_physical_interface_and_tag( &self, physical: &NetworkInterface, tag: i32, ) -> Result<()>
pub fn as_network_interface(&self) -> NetworkInterface
Trait Implementations§
Source§impl Clone for VlanInterface
impl Clone for VlanInterface
Source§fn clone(&self) -> VlanInterface
fn clone(&self) -> VlanInterface
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 moreAuto Trait Implementations§
impl Freeze for VlanInterface
impl RefUnwindSafe for VlanInterface
impl !Send for VlanInterface
impl !Sync for VlanInterface
impl Unpin for VlanInterface
impl UnsafeUnpin for VlanInterface
impl UnwindSafe for VlanInterface
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