pub struct NetworkProtocol { /* private fields */ }Expand description
Re-exports the corresponding SystemConfiguration wrappers.
Wraps SCNetworkProtocolRef.
Implementations§
Source§impl NetworkProtocol
impl NetworkProtocol
Sourcepub fn configuration(&self) -> Option<PropertyList>
pub fn configuration(&self) -> Option<PropertyList>
Wraps SCNetworkProtocolCopyConfiguration.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Wraps SCNetworkProtocolGetEnabled.
Sourcepub fn protocol_type(&self) -> Option<String>
pub fn protocol_type(&self) -> Option<String>
Wraps SCNetworkProtocolCopyProtocolType.
Sourcepub fn set_configuration(&self, value: &PropertyList) -> Result<()>
pub fn set_configuration(&self, value: &PropertyList) -> Result<()>
Wraps SCNetworkProtocolSetConfiguration.
Sourcepub fn set_enabled(&self, enabled: bool) -> Result<()>
pub fn set_enabled(&self, enabled: bool) -> Result<()>
Wraps SCNetworkProtocolSetEnabled.
Trait Implementations§
Source§impl Clone for NetworkProtocol
impl Clone for NetworkProtocol
Source§fn clone(&self) -> NetworkProtocol
fn clone(&self) -> NetworkProtocol
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 NetworkProtocol
impl RefUnwindSafe for NetworkProtocol
impl !Send for NetworkProtocol
impl !Sync for NetworkProtocol
impl Unpin for NetworkProtocol
impl UnsafeUnpin for NetworkProtocol
impl UnwindSafe for NetworkProtocol
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