Structin aclfastly 0.13.1View source
pub struct Acl { /* private fields */ }

A Compute ACL.

Methods

fn open(name: &str) -> Result<Self, OpenError>

Open an ACL linked to the current service with the given link name.

Parameters

name: &str

Returns

try_lookup

View source
fn try_lookup(&self, ip: IpAddr) -> Result<Option<LookupMatch>, LookupError>

Perform a lookup of the given IP address in the ACL.

If no matches are found, then Ok(None) is returned.

Parameters

self: &Self
ip: IpAddr

Returns

Auto trait implementations

Blanket implementations