pub struct ServerOption {
pub host: String,
pub port: u16,
}Fields§
§host: String§port: u16Implementations§
Source§impl ServerOption
impl ServerOption
pub async fn tcp_connect(&self) -> DigitalisResult<TcpListener>
Trait Implementations§
Source§impl Clone for ServerOption
impl Clone for ServerOption
Source§fn clone(&self) -> ServerOption
fn clone(&self) -> ServerOption
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 ServerOption
impl Debug for ServerOption
Source§impl Default for ServerOption
impl Default for ServerOption
Source§impl PartialEq for ServerOption
impl PartialEq for ServerOption
Source§fn eq(&self, other: &ServerOption) -> bool
fn eq(&self, other: &ServerOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ServerOption
impl StructuralPartialEq for ServerOption
Auto Trait Implementations§
impl Freeze for ServerOption
impl RefUnwindSafe for ServerOption
impl Send for ServerOption
impl Sync for ServerOption
impl Unpin for ServerOption
impl UnsafeUnpin for ServerOption
impl UnwindSafe for ServerOption
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