[−][src]Enum rpki::resources::IpBlock
A consecutive sequence of IP addresses.
Variants
Prefix(Prefix)
The block is expressed as a prefix.
The block is expressed as a range.
Methods
impl IpBlock
[src]
pub fn from_v4_str(s: &str) -> Result<Self, FromStrError>
[src]
Creates a new block from an IPv4 representation.
pub fn from_v6_str(s: &str) -> Result<Self, FromStrError>
[src]
Creates a new block from an IPv6 representation.
pub fn min(&self) -> Addr
[src]
The smallest address of the block.
pub fn max(&self) -> Addr
[src]
The largest address of the block.
pub fn fmt_v4(self, f: &mut Formatter) -> Result
[src]
Formats the block as a IPv4 block.
pub fn fmt_v6(self, f: &mut Formatter) -> Result
[src]
Formats the block as a IPv4 block.
impl IpBlock
[src]
pub fn encode(self) -> impl Values
[src]
Returns an encoder for the range.
This encoder will produce a IPAddressOrRange
value.
Trait Implementations
impl From<Prefix> for IpBlock
[src]
impl From<(Addr, Addr)> for IpBlock
[src]
impl Clone for IpBlock
[src]
impl Copy for IpBlock
[src]
impl Eq for IpBlock
[src]
impl PartialEq<IpBlock> for IpBlock
[src]
impl Debug for IpBlock
[src]
impl FromStr for IpBlock
[src]
type Err = FromStrError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl FromIterator<IpBlock> for IpBlocks
[src]
fn from_iter<I: IntoIterator<Item = IpBlock>>(iter: I) -> Self
[src]
Auto Trait Implementations
impl Send for IpBlock
impl Sync for IpBlock
impl Unpin for IpBlock
impl UnwindSafe for IpBlock
impl RefUnwindSafe for IpBlock
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,