pub struct Arguments<'args>(/* private fields */);Expand description
A set of arguments known to be of valid length for use in a TACACS+ packet.
Implementations§
Source§impl<'args> Arguments<'args>
impl<'args> Arguments<'args>
Sourcepub fn new<T: AsRef<[Argument<'args>]>>(arguments: &'args T) -> Option<Self>
pub fn new<T: AsRef<[Argument<'args>]>>(arguments: &'args T) -> Option<Self>
Constructs a new Arguments, returning Some if the provided slice has less than u8::MAX and None otherwise.
The u8::MAX restriction is due to the argument count being required to fit into a single byte when encoding.
Sourcepub fn argument_count(&self) -> u8
pub fn argument_count(&self) -> u8
Returns the number of arguments an Arguments object contains.
Trait Implementations§
impl<'args> Copy for Arguments<'args>
impl<'args> Eq for Arguments<'args>
impl<'args> StructuralPartialEq for Arguments<'args>
Auto Trait Implementations§
impl<'args> Freeze for Arguments<'args>
impl<'args> RefUnwindSafe for Arguments<'args>
impl<'args> Send for Arguments<'args>
impl<'args> Sync for Arguments<'args>
impl<'args> Unpin for Arguments<'args>
impl<'args> UnwindSafe for Arguments<'args>
Blanket Implementations§
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
Mutably borrows from an owned value. Read more