pub struct TcpService {
pub port: u16,
pub service_name: String,
}
Fields§
§port: u16
§service_name: String
Implementations§
Trait Implementations§
Source§impl Clone for TcpService
impl Clone for TcpService
Source§fn clone(&self) -> TcpService
fn clone(&self) -> TcpService
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TcpService
impl Debug for TcpService
Source§impl<'de> Deserialize<'de> for TcpService
impl<'de> Deserialize<'de> for TcpService
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
Auto Trait Implementations§
impl Freeze for TcpService
impl RefUnwindSafe for TcpService
impl Send for TcpService
impl Sync for TcpService
impl Unpin for TcpService
impl UnwindSafe for TcpService
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