Struct argdata::values::EncodedArgdata [−][src]
pub struct EncodedArgdata<'d, F> { /* fields omitted */ }
Methods
impl<'d, F: ConvertFd> EncodedArgdata<'d, F>
[src]
impl<'d, F: ConvertFd> EncodedArgdata<'d, F>
Trait Implementations
impl<'d, F: Clone> Clone for EncodedArgdata<'d, F>
[src]
impl<'d, F: Clone> Clone for EncodedArgdata<'d, F>
fn clone(&self) -> EncodedArgdata<'d, F>
[src]
fn clone(&self) -> EncodedArgdata<'d, F>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'d, F: Copy> Copy for EncodedArgdata<'d, F>
[src]
impl<'d, F: Copy> Copy for EncodedArgdata<'d, F>
impl<'d, F: Debug> Debug for EncodedArgdata<'d, F>
[src]
impl<'d, F: Debug> Debug for EncodedArgdata<'d, F>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'d, F: ConvertFd> Argdata<'d> for EncodedArgdata<'d, F>
[src]
impl<'d, F: ConvertFd> Argdata<'d> for EncodedArgdata<'d, F>
fn get_type(&self) -> Result<Type, ReadError>
[src]
fn get_type(&self) -> Result<Type, ReadError>
Read the type of the value.
fn read_null(&self) -> Result<(), NotRead>
[src]
fn read_null(&self) -> Result<(), NotRead>
Check if the value is null.
fn read_binary(&self) -> Result<&'d [u8], NotRead>
[src]
fn read_binary(&self) -> Result<&'d [u8], NotRead>
Check if the value is a binary blob, and read it if it is.
fn read_bool(&self) -> Result<bool, NotRead>
[src]
fn read_bool(&self) -> Result<bool, NotRead>
Check if the value is a boolean, and read it if it is.
fn read_encoded_fd<'a>(&'a self) -> Result<EncodedFd<&'a ConvertFd>, NotRead> where
'd: 'a,
[src]
fn read_encoded_fd<'a>(&'a self) -> Result<EncodedFd<&'a ConvertFd>, NotRead> where
'd: 'a,
Check if the value is a file descriptor, and return it if it is. Read more
fn read_float(&self) -> Result<f64, NotRead>
[src]
fn read_float(&self) -> Result<f64, NotRead>
Check if the value is a float, and read it if it is.
fn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
[src]
fn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
Check if the value is an integer, and read it if it is. Read more
fn read_map<'a>(&'a self) -> Result<&'a (Map<'d> + 'a), NotRead> where
'd: 'a,
[src]
fn read_map<'a>(&'a self) -> Result<&'a (Map<'d> + 'a), NotRead> where
'd: 'a,
Check if the value is a map, and get access to it if it is.
fn read_seq<'a>(&'a self) -> Result<&'a (Seq<'d> + 'a), NotRead> where
'd: 'a,
[src]
fn read_seq<'a>(&'a self) -> Result<&'a (Seq<'d> + 'a), NotRead> where
'd: 'a,
Check if the value is a seq, and get access to it if it is.
fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
[src]
fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
Check if the value is a string, and read it if it is. Read more
fn read_timestamp(&self) -> Result<Timespec, NotRead>
[src]
fn read_timestamp(&self) -> Result<Timespec, NotRead>
Check if the value is a timestamp, and read it if it is.
fn serialized_length(&self) -> usize
[src]
fn serialized_length(&self) -> usize
The number of bytes that self.serialize()
will write.
fn serialize(
&self,
writer: &mut Write,
fd_map: Option<&mut FdMapping>
) -> Result<()>
[src]
fn serialize(
&self,
writer: &mut Write,
fd_map: Option<&mut FdMapping>
) -> Result<()>
Serialize the argdata to the given writer. Read more
fn read<'a>(&'a self) -> Result<Value<'a, 'd>, ReadError> where
'd: 'a,
[src]
fn read<'a>(&'a self) -> Result<Value<'a, 'd>, ReadError> where
'd: 'a,
Read the value.
impl<'d, F: ConvertFd> Seq<'d> for EncodedArgdata<'d, F>
[src]
impl<'d, F: ConvertFd> Seq<'d> for EncodedArgdata<'d, F>
fn iter_seq_next<'a>(
&'a self,
offset: &mut usize
) -> Option<Result<ArgdataRef<'a, 'd>, ReadError>> where
'd: 'a,
[src]
fn iter_seq_next<'a>(
&'a self,
offset: &mut usize
) -> Option<Result<ArgdataRef<'a, 'd>, ReadError>> where
'd: 'a,
Iterate to the next element, returning None if the end is reached. Read more
impl<'d, F: ConvertFd> Map<'d> for EncodedArgdata<'d, F>
[src]
impl<'d, F: ConvertFd> Map<'d> for EncodedArgdata<'d, F>
fn iter_map_next<'a>(
&'a self,
offset: &mut usize
) -> Option<Result<(ArgdataRef<'a, 'd>, ArgdataRef<'a, 'd>), ReadError>> where
'd: 'a,
[src]
fn iter_map_next<'a>(
&'a self,
offset: &mut usize
) -> Option<Result<(ArgdataRef<'a, 'd>, ArgdataRef<'a, 'd>), ReadError>> where
'd: 'a,
Iterate to the next key-value pair, returning None if the end is reached. Read more
Auto Trait Implementations
impl<'d, F> Send for EncodedArgdata<'d, F> where
F: Send,
impl<'d, F> Send for EncodedArgdata<'d, F> where
F: Send,
impl<'d, F> Sync for EncodedArgdata<'d, F> where
F: Sync,
impl<'d, F> Sync for EncodedArgdata<'d, F> where
F: Sync,