pub struct SendArgs {
pub target: KeyArg,
pub text: Vec<String>,
pub timeout: u64,
pub no_ack: bool,
}Fields§
§target: KeyArgThe node to send to, as its public key.
text: Vec<String>The message. Several words are joined with spaces.
A message that begins with a dash goes after --, as anywhere
else; the flags stay flags so --timeout still means what it
says.
timeout: u64Give up waiting for the acknowledgment after this long.
no_ack: boolSend without asking for an acknowledgment.
Nothing comes back, so nothing says the message arrived — which is what you want for a message to somebody who is not listening yet, and never what you want otherwise.
Trait Implementations§
Source§impl Args for SendArgs
impl Args for SendArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for SendArgs
impl FromArgMatches for SendArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for SendArgs
impl RefUnwindSafe for SendArgs
impl Send for SendArgs
impl Sync for SendArgs
impl Unpin for SendArgs
impl UnwindSafe for SendArgs
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more