pub struct UpstreamConnector {
pub upstream_addr: SocketAddr,
pub config: UpstreamConnectorConfig,
}Fields§
§upstream_addr: SocketAddr§config: UpstreamConnectorConfigImplementations§
Source§impl UpstreamConnector
impl UpstreamConnector
pub fn new(upstream_addr: SocketAddr, config: UpstreamConnectorConfig) -> Self
pub async fn connect(&self) -> Result<RaknetClient, RaknetClientError>
Trait Implementations§
Source§impl Clone for UpstreamConnector
impl Clone for UpstreamConnector
Source§fn clone(&self) -> UpstreamConnector
fn clone(&self) -> UpstreamConnector
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 moreAuto Trait Implementations§
impl Freeze for UpstreamConnector
impl RefUnwindSafe for UpstreamConnector
impl Send for UpstreamConnector
impl Sync for UpstreamConnector
impl Unpin for UpstreamConnector
impl UnsafeUnpin for UpstreamConnector
impl UnwindSafe for UpstreamConnector
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