pub struct Service {
pub address: IpAddr,
pub netmask: Netmask,
pub scheduler: Scheduler,
pub flags: Flags,
pub port: Option<u16>,
pub fw_mark: Option<u32>,
pub persistence_timeout: Option<NonZero<u32>>,
pub family: AddressFamily,
pub protocol: Protocol,
}
Fields§
§address: IpAddr
§netmask: Netmask
§scheduler: Scheduler
§flags: Flags
§port: Option<u16>
§fw_mark: Option<u32>
§persistence_timeout: Option<NonZero<u32>>
§family: AddressFamily
§protocol: Protocol
Implementations§
Source§impl Service
impl Service
pub fn from_nlas( nlas: &[SvcCtrlAttrs], ) -> Result<ServiceExtended, Box<dyn Error>>
pub fn create_nlas(&self) -> Vec<SvcCtrlAttrs>
Trait Implementations§
impl Eq for Service
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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