Struct dns_message_parser::rr::edns::ECS [−][src]
pub struct ECS { /* fields omitted */ }Implementations
pub fn new(
source_prefix_length: u8,
scope_prefix_length: u8,
address: Address
) -> Result<ECS, AddressError>
Returns the current source prefix length.
Try to set the source prefix length.
Returns Ok() if the length fit in the current address as network mask, otherwise
returns AddressError and the value is not changed.
Returns the current scope prefix length.
Try to set the scope prefix length.
Returns Ok() if the length fit in the current address as network mask, otherwise
returns AddressError and the value is not changed.
Returns the current address.
Try to set the scope prefix length.
Returns Ok() if the current and scope prefix length fits in the new address as
network mask , otherwise returns AddressError and the value is not changed.
Returns the prefix length of the address.
It the max value of the source_prefix_length and scope_prefix_length.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ECS
impl UnwindSafe for ECS
Blanket Implementations
Mutably borrows from an owned value. Read more