pub struct GSIServer { /* private fields */ }
Expand description
a server that listens for GSI updates
Implementations§
Source§impl GSIServer
impl GSIServer
Sourcepub fn new(config: GSIConfig, port: u16) -> Self
pub fn new(config: GSIConfig, port: u16) -> Self
create a new server with the given configuration and port
Sourcepub fn install_into<P: Into<PathBuf>>(
&mut self,
cfg_folder: P,
) -> Result<(), Error>
pub fn install_into<P: Into<PathBuf>>( &mut self, cfg_folder: P, ) -> Result<(), Error>
install this server’s configuration into the given /path/to/csgo/cfg/
folder
Sourcepub fn install(&mut self) -> Result<(), Error>
pub fn install(&mut self) -> Result<(), Error>
install this server’s configuration into the autodiscovered /path/to/csgo/cfg/
folder, if it can be found
Sourcepub fn add_listener<F: 'static + FnMut(&Update)>(&mut self, listener: F)
pub fn add_listener<F: 'static + FnMut(&Update)>(&mut self, listener: F)
add an update listener
Auto Trait Implementations§
impl Freeze for GSIServer
impl !RefUnwindSafe for GSIServer
impl !Send for GSIServer
impl !Sync for GSIServer
impl Unpin for GSIServer
impl !UnwindSafe for GSIServer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more