Struct shadowsocks_service::local::context::ServiceContext[][src]

pub struct ServiceContext { /* fields omitted */ }
Expand description

Local Service Context

Implementations

Create a new ServiceContext

Get cloned shadowsocks Context

Get shadowsocks Context reference

Set ConnectOpts

Get ConnectOpts reference

Set AcceptOpts

Get AcceptOpts cloned

Set Access Control List

Get Access Control List reference

Get cloned flow statistic

Get flow statistic reference

Set customized DNS resolver

Get reference of DNS resolver

Check if target should be bypassed

Add a record to the reverse lookup cache

Try to connect IPv6 addresses first if hostname could be resolved to both IPv4 and IPv6

Set security config

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more