pub struct Server {
pub socket: SocketAddrV4,
pub tlv_map: Option<HashMap<String, ServerTlv>>,
pub sync_group_id: Option<String>,
}
Expand description
A Server struct to hold the connection details
Fields§
§socket: SocketAddrV4
§tlv_map: Option<HashMap<String, ServerTlv>>
§sync_group_id: Option<String>
Implementations§
source§impl Server
impl Server
pub fn prepare(&self, caps: Capabilities) -> PreparedServer
Trait Implementations§
source§impl Clone for Server
impl Clone for Server
Allow to clone the server. We’ll lose the TLV map but it’s not needed for connecting to the server
source§impl From<SocketAddrV4> for Server
impl From<SocketAddrV4> for Server
source§fn from(value: SocketAddrV4) -> Self
fn from(value: SocketAddrV4) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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