pub struct PortListRequest { /* private fields */ }Expand description
Request for bounded listening-port inspection.
Implementations§
Source§impl PortListRequest
impl PortListRequest
Sourcepub const fn with_protocol(self, protocol: PortProtocol) -> Self
pub const fn with_protocol(self, protocol: PortProtocol) -> Self
Restricts the protocol.
Sourcepub fn with_page(self, offset: u32, limit: u32) -> InfraResult<Self>
pub fn with_page(self, offset: u32, limit: u32) -> InfraResult<Self>
Sets pagination bounds.
Sourcepub const fn protocol(&self) -> Option<PortProtocol>
pub const fn protocol(&self) -> Option<PortProtocol>
Returns the protocol filter.
Trait Implementations§
Source§impl Clone for PortListRequest
impl Clone for PortListRequest
Source§fn clone(&self) -> PortListRequest
fn clone(&self) -> PortListRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PortListRequest
impl Debug for PortListRequest
Source§impl<'de> Deserialize<'de> for PortListRequest
impl<'de> Deserialize<'de> for PortListRequest
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 PartialEq for PortListRequest
impl PartialEq for PortListRequest
Source§fn eq(&self, other: &PortListRequest) -> bool
fn eq(&self, other: &PortListRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PortListRequest
impl Serialize for PortListRequest
impl Eq for PortListRequest
impl StructuralPartialEq for PortListRequest
Auto Trait Implementations§
impl Freeze for PortListRequest
impl RefUnwindSafe for PortListRequest
impl Send for PortListRequest
impl Sync for PortListRequest
impl Unpin for PortListRequest
impl UnsafeUnpin for PortListRequest
impl UnwindSafe for PortListRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.