pub enum IpPort {
IpPort(IpPort),
Secret(IpPortSecret),
}Expand description
Variants§
IpPort(IpPort)
Secret(IpPortSecret)
Trait Implementations§
Source§impl Deserializable for IpPort
impl Deserializable for IpPort
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<IpPortSecret> for IpPort
impl From<IpPortSecret> for IpPort
Source§fn from(x: IpPortSecret) -> Self
fn from(x: IpPortSecret) -> Self
Converts to this type from the input type.
Source§impl Serializable for IpPort
impl Serializable for IpPort
impl StructuralPartialEq for IpPort
Auto Trait Implementations§
impl Freeze for IpPort
impl RefUnwindSafe for IpPort
impl Send for IpPort
impl Sync for IpPort
impl Unpin for IpPort
impl UnsafeUnpin for IpPort
impl UnwindSafe for IpPort
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