pub struct PortInt(/* private fields */);Trait Implementations§
Source§impl BoundedInteger for PortInt
impl BoundedInteger for PortInt
const MIN: Option<i128>
const MAX: Option<i128>
const DEFAULT: Option<i128>
const TYPE_DESCRIPTION: &'static str = "an integer between 1 and 65535"
fn get(&self) -> i128
fn new(value: i128) -> Result<Self, BoundedIntegerError>
fn validate(value: i128) -> Result<(), BoundedIntegerError>
impl Copy for PortInt
Source§impl<'de> Deserialize<'de> for PortInt
impl<'de> Deserialize<'de> for PortInt
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialOrd for PortInt
impl PartialOrd for PortInt
impl StructuralPartialEq for PortInt
Auto Trait Implementations§
impl Freeze for PortInt
impl RefUnwindSafe for PortInt
impl Send for PortInt
impl Sync for PortInt
impl Unpin for PortInt
impl UnsafeUnpin for PortInt
impl UnwindSafe for PortInt
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