pub struct VlanInterface { /* private fields */ }Expand description
Re-exports the corresponding SystemConfiguration wrappers.
Wraps SCVLANInterfaceRef.
Implementations§
Source§impl VlanInterface
impl VlanInterface
Sourcepub fn copy_all(preferences: &Preferences) -> Vec<Self>
pub fn copy_all(preferences: &Preferences) -> Vec<Self>
Wraps SCVLANInterfaceCopyAll.
Sourcepub fn copy_available_physical_interfaces() -> Vec<NetworkInterface>
pub fn copy_available_physical_interfaces() -> Vec<NetworkInterface>
Wraps SCVLANInterfaceCopyAvailablePhysicalInterfaces.
Sourcepub fn create(
preferences: &Preferences,
physical: &NetworkInterface,
tag: i32,
) -> Result<Self>
pub fn create( preferences: &Preferences, physical: &NetworkInterface, tag: i32, ) -> Result<Self>
Wraps SCVLANInterfaceCreate.
Sourcepub fn options(&self) -> Option<PropertyList>
pub fn options(&self) -> Option<PropertyList>
Wraps SCVLANInterfaceCopyOptions.
Sourcepub fn physical_interface(&self) -> Option<NetworkInterface>
pub fn physical_interface(&self) -> Option<NetworkInterface>
Wraps SCVLANInterfaceCopyPhysicalInterface.
Sourcepub fn set_localized_display_name(&self, name: &str) -> Result<()>
pub fn set_localized_display_name(&self, name: &str) -> Result<()>
Wraps SCVLANInterfaceSetLocalizedDisplayName.
Sourcepub fn set_options(&self, options: &PropertyList) -> Result<()>
pub fn set_options(&self, options: &PropertyList) -> Result<()>
Wraps SCVLANInterfaceSetOptions.
Sourcepub fn set_physical_interface_and_tag(
&self,
physical: &NetworkInterface,
tag: i32,
) -> Result<()>
pub fn set_physical_interface_and_tag( &self, physical: &NetworkInterface, tag: i32, ) -> Result<()>
Wraps SCVLANInterfaceSetPhysicalInterfaceAndTag.
Sourcepub fn as_network_interface(&self) -> NetworkInterface
pub fn as_network_interface(&self) -> NetworkInterface
Wraps a helper on SCVLANInterfaceRef.
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