Struct likemod::ModUnloader[][src]

pub struct ModUnloader { /* fields omitted */ }

Module unloader.

Asynchronous methods can be enabled via the optional async feature.

Methods

impl ModUnloader
[src]

Create a new default ModLoader.

Set whether a forced unload should be performed.

A force unload will taint the kernel and can leave the host in an unstable state, or cause data loss.

Unload module by name, synchronously.

If blocking is enabled, this can block at syscall level (putting the process in D state) while waiting for module reference count to be 0 for clean unloading (unless forced).

It is usually recommended not to set blocking, as the process cannot be killed while blocked on syscall. Consider using unload_async instead.

Unload module by name, asynchronously.

If the module is currently in use, this will continuously retry unloading at fixed intervals after pausing for the specified amount of milliseconds. This requires enabling the async optional feature.

Trait Implementations

impl Clone for ModUnloader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ModUnloader
[src]

Formats the value using the given formatter. Read more

impl Default for ModUnloader
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for ModUnloader

impl Sync for ModUnloader