Struct amsi::AmsiContext [−][src]
pub struct AmsiContext { /* fields omitted */ }
A Context that can be used for scanning payloads.
Methods
impl AmsiContext
[src]
impl AmsiContext
pub fn new(app_name: &str) -> Result<AmsiContext, WinError>
[src]
pub fn new(app_name: &str) -> Result<AmsiContext, WinError>
Creates a new AMSI context.
Parameters
- app_name - name, version or GUID of the application using AMSI API.
pub fn create_session<'a>(&self) -> Result<AmsiSession, WinError>
[src]
pub fn create_session<'a>(&self) -> Result<AmsiSession, WinError>
Creates a scan session from the current context.
Trait Implementations
impl Debug for AmsiContext
[src]
impl Debug for AmsiContext
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Drop for AmsiContext
[src]
impl Drop for AmsiContext
Auto Trait Implementations
impl !Send for AmsiContext
impl !Send for AmsiContext
impl !Sync for AmsiContext
impl !Sync for AmsiContext