Trait argdata::ArgdataExt [−][src]
pub trait ArgdataExt<'d> { fn read_int<T: TryFrom<IntValue<'d>>>(&self) -> Result<T, NotRead>; fn read_fd(&self) -> Result<Fd, NotRead>; fn read_str(&self) -> Result<&'d str, NotRead>; }
Extra methods for Argdata
values.
Required Methods
fn read_int<T: TryFrom<IntValue<'d>>>(&self) -> Result<T, NotRead>
Read an integer, and convert it to the requested type if it fits.
fn read_fd(&self) -> Result<Fd, NotRead>
Read a file descriptor and convert it to an Fd
.
fn read_str(&self) -> Result<&'d str, NotRead>
Read a string, and check if it's valid UTF-8.