pub struct Args {Show 48 fields
pub model: Option<String>,
pub log_level: String,
pub scripting_env: Option<String>,
pub event_handler_mode: Option<String>,
pub listen_addr: Option<String>,
pub include_disabled_protocols: bool,
pub min_stability: Option<String>,
pub ollama_lock: bool,
pub ollama_url: Option<String>,
pub openai_url: Option<String>,
pub api_key: Option<String>,
pub llm_agent: bool,
pub llm_agent_pipe: Option<PathBuf>,
pub llm_agent_timeout: u64,
pub llm_request_timeout: Option<u64>,
pub llm_max_tokens: Option<u32>,
pub llm_seed: Option<u64>,
pub llm_temperature: Option<f32>,
pub embedded_model: Option<PathBuf>,
pub use_embedded: bool,
pub theme: String,
pub show_art: bool,
pub suppress_art: bool,
pub llm_max_concurrent: Option<usize>,
pub llm_queue_timeout: Option<u64>,
pub llm_max_queued: Option<usize>,
pub llm_token_limit: Option<u64>,
pub llm_token_window: u64,
pub no_scripts: bool,
pub load_file: Option<String>,
pub exit_after_events: Option<u64>,
pub run_for: Option<u64>,
pub mock_config_file: Option<PathBuf>,
pub simple_protocol: Option<String>,
pub simple_list: bool,
pub client_protocol: Option<String>,
pub client_addr: Option<String>,
pub client_params: Option<String>,
pub client_handlers: Option<String>,
pub client_list: bool,
pub server_protocol: Option<String>,
pub server_port: Option<u16>,
pub server_params: Option<String>,
pub docs: bool,
pub mcp_stdio: bool,
pub mcp_http: Option<u16>,
pub mcp_token: Option<String>,
pub prompt: Vec<String>,
}Expand description
NetGet - LLM-Controlled Network Application
Fields§
§model: Option<String>LLM model to use (e.g., “llama3.2:latest”, “deepseek-coder:latest”)
log_level: StringLog level (off, error, warn, info, debug, trace) Development builds default to ‘debug’, release builds default to ‘info’ (‘trace’ additionally writes full network payloads and LLM prompts to netget.log)
scripting_env: Option<String>Scripting environment to use (on, off, python, javascript, go, perl)
event_handler_mode: Option<String>Event handler mode to use (any, script, static, llm)
listen_addr: Option<String>Bind address for the MCP HTTP control endpoint (default: 127.0.0.1)
Read only by --mcp-http. Protocol servers take their bind address from
each start_server / open_server call’s host, not from this flag.
include_disabled_protocols: boolInclude disabled protocols (for testing honeypot-only protocols like IPSec, OpenVPN)
min_stability: Option<String>Refuse to start any protocol below this maturity level
ollama_lock: boolDEPRECATED AND IGNORED. Accepted for compatibility only; it locks nothing.
ollama_url: Option<String>Ollama API base URL (default: http://localhost:11434)
openai_url: Option<String>OpenAI-compatible API base URL (e.g., “https://api.openai.com”, “http://localhost:1234”)
api_key: Option<String>API key for OpenAI-compatible endpoint (prefer the environment variable)
llm_agent: boolRoute all LLM calls to the calling MCP agent instead of a model (MCP mode only)
llm_agent_pipe: Option<PathBuf>FIFO path for agent-queue push notifications
llm_agent_timeout: u64Seconds a queued LLM request waits for the agent’s answer before erroring
llm_request_timeout: Option<u64>Wall-clock bound (seconds) on a single LLM backend call
llm_max_tokens: Option<u32>Completion-token budget for a single LLM call
llm_seed: Option<u64>Sampler seed sent to the LLM backend
llm_temperature: Option<f32>Sampling temperature sent to the LLM backend
embedded_model: Option<PathBuf>Path to embedded GGUF model file (enables embedded LLM inference)
use_embedded: boolForce use of embedded LLM backend (skip Ollama)
theme: StringTerminal color theme (auto, light, dark, neutral)
show_art: boolShow the generated ASCII art banner on startup (off by default)
--suppress-art is kept as a hidden no-op so existing scripts and the
test harness keep working now that suppressing is the default.
suppress_art: bool§llm_max_concurrent: Option<usize>Maximum concurrent LLM requests (default: 1)
llm_queue_timeout: Option<u64>How long a network request waits for a concurrency permit
llm_max_queued: Option<usize>How many network requests may wait for a concurrency permit at once
llm_token_limit: Option<u64>Token limit per time window (optional, for cloud API usage control)
llm_token_window: u64Token limit time window in seconds (default: 60)
no_scripts: boolDisable scripting (LLM will only use actions, no script generation)
load_file: Option<String>Load server/client configuration from a .netget file
exit_after_events: Option<u64>Non-interactive only: exit (status 0) once this many network events have been handled across every server and client.
run_for: Option<u64>Non-interactive only: exit (status 0) after this many seconds.
mock_config_file: Option<PathBuf>Path to mock LLM configuration file (for testing)
simple_protocol: Option<String>Start a simple protocol (simplified LLM interface for “dumb” models)
simple_list: boolList available simple protocols
client_protocol: Option<String>Connect a protocol client to a remote server (non-interactive)
client_addr: Option<String>Remote address for –client
client_params: Option<String>Startup parameters for –client
client_handlers: Option<String>Event handlers for –client
client_list: boolList available client protocols
server_protocol: Option<String>Start a server of PROTOCOL directly, skipping the initial model call
server_port: Option<u16>Listen port for –server
server_params: Option<String>Startup parameters for –server
docs: boolPrint documentation for every protocol and exit
mcp_stdio: boolRun as MCP STDIO server (for Claude Desktop/Code integration)
mcp_http: Option<u16>Run as an MCP server over HTTP/SSE on the given port (for remote/web MCP clients)
mcp_token: Option<String>Bearer token every –mcp-http request must carry
prompt: Vec<String>Prompt/command to execute (can be specified after –, or as trailing args, or via stdin)
Implementations§
Source§impl Args
impl Args
Sourcepub fn resolve_api_key(&self) -> Option<String>
pub fn resolve_api_key(&self) -> Option<String>
Resolve the API key from NETGET_API_KEY / OPENAI_API_KEY, or the
--api-key flag.
The flag still wins when both are set - changing that would break callers - but using it warns, because it exposes the secret in the process table.
Sourcepub fn resolve_mcp_token(&self) -> Option<String>
pub fn resolve_mcp_token(&self) -> Option<String>
Resolve the MCP HTTP bearer token from --mcp-token or NETGET_MCP_TOKEN.
Same shape as resolve_api_key: the flag wins and warns, the variable is
the documented way in. An empty value counts as unset.
Sourcepub fn effective_log_level(&self) -> Level
pub fn effective_log_level(&self) -> Level
Get the effective log level from –log-level flag
Sourcepub fn logging_disabled(&self) -> bool
pub fn logging_disabled(&self) -> bool
Check if logging should be disabled entirely
Sourcepub fn is_interactive(&self) -> bool
pub fn is_interactive(&self) -> bool
Determine if we should run in interactive mode
Sourcepub fn get_prompt(&self) -> Result<Option<String>>
pub fn get_prompt(&self) -> Result<Option<String>>
Get the prompt to execute, from various sources Returns None if the input should be treated as actions JSON instead
Sourcepub fn get_actions_json(&self) -> Result<Option<Vec<Value>>>
pub fn get_actions_json(&self) -> Result<Option<Vec<Value>>>
Get actions JSON to execute, from various sources Returns None if the input is a regular prompt or no input
Sourcepub fn validate_mode(&self) -> Result<()>
pub fn validate_mode(&self) -> Result<()>
Check if the environment is suitable for the requested mode
Sourcepub fn parse_scripting_mode(&self) -> Result<Option<ScriptingMode>>
pub fn parse_scripting_mode(&self) -> Result<Option<ScriptingMode>>
Parse the scripting environment argument into a ScriptingMode
Sourcepub fn parse_event_handler_mode(&self) -> Result<Option<EventHandlerMode>>
pub fn parse_event_handler_mode(&self) -> Result<Option<EventHandlerMode>>
Parse the event handler mode argument into an EventHandlerMode
Sourcepub fn client_instruction(&self, protocol: &str, remote_addr: &str) -> String
pub fn client_instruction(&self, protocol: &str, remote_addr: &str) -> String
Instruction for a --client: the trailing text if any was given,
otherwise the same default the MCP start_client tool uses.
Sourcepub fn server_instruction(&self, protocol: &str) -> String
pub fn server_instruction(&self, protocol: &str) -> String
The per-request instruction for --server: the trailing prompt, or a
minimal default naming the protocol when none was given.
Sourcepub fn parse_server_params(&self) -> Result<Option<Value>>
pub fn parse_server_params(&self) -> Result<Option<Value>>
Parse --server-params into a JSON object.
Sourcepub fn parse_client_params(&self) -> Result<Option<Value>>
pub fn parse_client_params(&self) -> Result<Option<Value>>
Parse --client-params into a JSON object
Sourcepub fn parse_client_handlers(&self) -> Result<Option<Vec<Value>>>
pub fn parse_client_handlers(&self) -> Result<Option<Vec<Value>>>
Parse --client-handlers into a list of event handler definitions
Sourcepub fn parse_min_stability(&self) -> Result<Option<DevelopmentState>>
pub fn parse_min_stability(&self) -> Result<Option<DevelopmentState>>
Parse --min-stability into a [DevelopmentState].
Returns Ok(None) when the flag is absent (no gate — current behaviour).
An unrecognised value is a hard error naming the allowed set, mirroring
parse_scripting_mode/parse_event_handler_mode.
Sourcepub fn build_rate_limiter_config(&self) -> RateLimiterConfig
pub fn build_rate_limiter_config(&self) -> RateLimiterConfig
Build a RateLimiterConfig from CLI arguments
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoAnyArc for T
impl<T> IntoAnyArc for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.