[][src]Struct csgo_gsi::GSIServer

pub struct GSIServer { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,