Skip to main content

RosArgsError

Enum RosArgsError 

Source
pub enum RosArgsError<'a> {
    Unsupported {
        flag: &'a str,
    },
    Unknown {
        token: &'a str,
    },
    MissingRule {
        flag: &'a str,
    },
    InvalidRule {
        rule: &'a str,
    },
    IdentityRemap {
        rule: &'a str,
    },
    MissingValue {
        flag: &'a str,
    },
    InvalidParam {
        rule: &'a str,
    },
}
Expand description

Why an argument vector was refused. Each variant names the offending token.

Variants§

§

Unsupported

A recognised ROS flag nano-ros does not honour (see the module docs for the reason each one is refused).

Fields

§flag: &'a str

The flag as written.

§

Unknown

A token inside a --ros-args scope that is not a ROS flag at all.

Fields

§token: &'a str

The token as written.

§

MissingRule

-r/--remap was the last argument.

Fields

§flag: &'a str

The flag as written.

§

InvalidRule

-r/--remap was followed by something that is not [node:]from:=to.

Fields

§rule: &'a str

The rule as written.

§

IdentityRemap

A node-identity remap (__node, __name, __ns, or any __ rule).

Fields

§rule: &'a str

The rule as written.

§

MissingValue

-p/--param or --params-file was the last argument.

Fields

§flag: &'a str

The flag as written.

§

InvalidParam

-p/--param was followed by something that is not [node:]name:=value.

Fields

§rule: &'a str

The rule as written.

Trait Implementations§

Source§

impl<'a> Clone for RosArgsError<'a>

Source§

fn clone(&self) -> RosArgsError<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for RosArgsError<'a>

Source§

impl<'a> Debug for RosArgsError<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RosArgsError<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Eq for RosArgsError<'a>

Source§

impl<'a> PartialEq for RosArgsError<'a>

Source§

fn eq(&self, other: &RosArgsError<'a>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'a> StructuralPartialEq for RosArgsError<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for RosArgsError<'a>

§

impl<'a> RefUnwindSafe for RosArgsError<'a>

§

impl<'a> Send for RosArgsError<'a>

§

impl<'a> Sync for RosArgsError<'a>

§

impl<'a> Unpin for RosArgsError<'a>

§

impl<'a> UnsafeUnpin for RosArgsError<'a>

§

impl<'a> UnwindSafe for RosArgsError<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.