pub trait InetAddressMaskExt: IsA<InetAddressMask> + 'static {
// Provided methods
fn equal(&self, mask2: &impl IsA<InetAddressMask>) -> bool { ... }
fn address(&self) -> InetAddress { ... }
fn family(&self) -> SocketFamily { ... }
fn length(&self) -> u32 { ... }
fn matches(&self, address: &impl IsA<InetAddress>) -> bool { ... }
fn to_str(&self) -> GString { ... }
fn set_address<P>(&self, address: Option<&P>)
where P: IsA<InetAddress> { ... }
fn set_length(&self, length: u32) { ... }
fn connect_address_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + Send + Sync + 'static { ... }
fn connect_family_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + Send + Sync + 'static { ... }
fn connect_length_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + Send + Sync + 'static { ... }
}Expand description
Provided Methods§
fn equal(&self, mask2: &impl IsA<InetAddressMask>) -> bool
Sourcefn address(&self) -> InetAddress
fn address(&self) -> InetAddress
Sourcefn family(&self) -> SocketFamily
fn family(&self) -> SocketFamily
Sourcefn matches(&self, address: &impl IsA<InetAddress>) -> bool
fn matches(&self, address: &impl IsA<InetAddress>) -> bool
Sourcefn set_address<P>(&self, address: Option<&P>)where
P: IsA<InetAddress>,
fn set_address<P>(&self, address: Option<&P>)where
P: IsA<InetAddress>,
The base address.
Sourcefn set_length(&self, length: u32)
fn set_length(&self, length: u32)
The prefix length, in bytes.
fn connect_address_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_family_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_length_notify<F>(&self, f: F) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.