[−][src]Struct csgo_gsi::GSIServer
a server that listens for GSI updates
Implementations
impl GSIServer
[src]
pub fn new(config: GSIConfig, port: u16) -> Self
[src]
create a new server with the given configuration and port
pub fn install_into<P: Into<PathBuf>>(
&mut self,
cfg_folder: P
) -> Result<(), Error>
[src]
&mut self,
cfg_folder: P
) -> Result<(), Error>
install this server's configuration into the given /path/to/csgo/cfg/
folder
pub fn install(&mut self) -> Result<(), Error>
[src]
install this server's configuration into the autodiscovered /path/to/csgo/cfg/
folder, if it can be found
pub fn add_listener<F: 'static + FnMut(&Update)>(&mut self, listener: F)
[src]
add an update listener
pub async fn run(__arg0: Self) -> Result<(), Error>
[src]
run the server (will block indefinitely)
Auto Trait Implementations
impl !RefUnwindSafe for GSIServer
impl !Send for GSIServer
impl !Sync for GSIServer
impl Unpin for GSIServer
impl !UnwindSafe for GSIServer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,