pub struct ServerOption {
pub addr: String,
pub service_name: String,
pub verify_key: String,
pub request_out_time_ms: u32,
}Expand description
Configuration options for the server.
Fields§
§addr: StringThe address of the server.
service_name: StringThe name of the service.
verify_key: StringThe key used for verification.
request_out_time_ms: u32The timeout for requests in milliseconds.
Implementations§
Source§impl ServerOption
Implementation of the ServerOption struct.
impl ServerOption
Implementation of the ServerOption struct.
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 · 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<'de> Deserialize<'de> for ServerOption
impl<'de> Deserialize<'de> for ServerOption
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 Display for ServerOption
Implementation of the Display trait for ServerOption.
impl Display for ServerOption
Implementation of the Display trait for ServerOption.
This allows ServerOption to be formatted as a string,
displaying the service name and address.
Auto Trait Implementations§
impl Freeze for ServerOption
impl RefUnwindSafe for ServerOption
impl Send for ServerOption
impl Sync for ServerOption
impl Unpin 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