pub struct StartClientOpts {
pub ecs_lock: Arc<Mutex<RawMutex, World>>,
pub account: Account,
pub connect_opts: ConnectOpts,
pub event_sender: Option<UnboundedSender<Event>>,
}Fields§
§ecs_lock: Arc<Mutex<RawMutex, World>>§account: Account§connect_opts: ConnectOpts§event_sender: Option<UnboundedSender<Event>>Implementations§
Source§impl StartClientOpts
impl StartClientOpts
pub fn new( account: Account, address: ResolvedAddr, event_sender: Option<UnboundedSender<Event>>, ) -> StartClientOpts
Sourcepub fn proxy(self, proxy: Proxy) -> StartClientOpts
pub fn proxy(self, proxy: Proxy) -> StartClientOpts
Configure the SOCKS5 proxy used for connecting to the server and for authenticating with Mojang.
To configure these separately, for example to only use the proxy for the
Minecraft server and not for authentication, you may use
Self::server_proxy and Self::sessionserver_proxy individually.
Sourcepub fn server_proxy(self, proxy: Proxy) -> StartClientOpts
pub fn server_proxy(self, proxy: Proxy) -> StartClientOpts
Configure the SOCKS5 proxy that will be used for connecting to the Minecraft server.
To avoid errors on servers with the “prevent-proxy-connections” option
set, you should usually use Self::proxy instead.
Also see Self::sessionserver_proxy.
Sourcepub fn sessionserver_proxy(self, proxy: Proxy) -> StartClientOpts
pub fn sessionserver_proxy(self, proxy: Proxy) -> StartClientOpts
Configure the SOCKS5 proxy that this bot will use for authenticating the server join with Mojang’s API.
Also see Self::proxy and Self::server_proxy.
Auto Trait Implementations§
impl Freeze for StartClientOpts
impl !RefUnwindSafe for StartClientOpts
impl Send for StartClientOpts
impl Sync for StartClientOpts
impl Unpin for StartClientOpts
impl !UnwindSafe for StartClientOpts
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.