Struct argdata::values::EncodedArgdata
source · pub struct EncodedArgdata<'d, F> { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<'d, F: ConvertFd> Argdata<'d> for EncodedArgdata<'d, F>
impl<'d, F: ConvertFd> Argdata<'d> for EncodedArgdata<'d, F>
sourcefn read_binary(&self) -> Result<&'d [u8], NotRead>
fn read_binary(&self) -> Result<&'d [u8], NotRead>
Check if the value is a binary blob, and read it if it is.
sourcefn read_bool(&self) -> Result<bool, NotRead>
fn read_bool(&self) -> Result<bool, NotRead>
Check if the value is a boolean, and read it if it is.
sourcefn read_encoded_fd<'a>(
&'a self
) -> Result<EncodedFd<&'a dyn ConvertFd>, NotRead>where
'd: 'a,
fn read_encoded_fd<'a>(
&'a self
) -> Result<EncodedFd<&'a dyn ConvertFd>, NotRead>where
'd: 'a,
Check if the value is a file descriptor, and return it if it is. Read more
sourcefn read_float(&self) -> Result<f64, NotRead>
fn read_float(&self) -> Result<f64, NotRead>
Check if the value is a float, and read it if it is.
sourcefn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
fn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
Check if the value is an integer, and read it if it is. Read more
sourcefn read_map<'a>(&'a self) -> Result<MapIterator<'a, 'd>, NotRead>where
'd: 'a,
fn read_map<'a>(&'a self) -> Result<MapIterator<'a, 'd>, NotRead>where
'd: 'a,
Check if the value is a map, and get an iterator over it if it is.
sourcefn read_seq<'a>(&'a self) -> Result<SeqIterator<'a, 'd>, NotRead>where
'd: 'a,
fn read_seq<'a>(&'a self) -> Result<SeqIterator<'a, 'd>, NotRead>where
'd: 'a,
Check if the value is a seq, and get an iterator over it if it is.
sourcefn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
Check if the value is a string, and read it if it is. Read more
sourcefn read_timestamp(&self) -> Result<Timespec, NotRead>
fn read_timestamp(&self) -> Result<Timespec, NotRead>
Check if the value is a timestamp, and read it if it is.
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
The number of bytes that
self.serialize()
will write.sourceimpl<'d, F: Clone> Clone for EncodedArgdata<'d, F>
impl<'d, F: Clone> Clone for EncodedArgdata<'d, F>
sourcefn clone(&self) -> EncodedArgdata<'d, F>
fn clone(&self) -> EncodedArgdata<'d, F>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'d, F: Debug> Debug for EncodedArgdata<'d, F>
impl<'d, F: Debug> Debug for EncodedArgdata<'d, F>
sourceimpl<'d, F: ConvertFd> MapIterable<'d> for EncodedArgdata<'d, F>
impl<'d, F: ConvertFd> MapIterable<'d> for EncodedArgdata<'d, F>
sourcefn iter_map_next<'a>(
&'a self,
offset: &mut usize
) -> Option<Result<(ArgdataRef<'a, 'd>, ArgdataRef<'a, 'd>), ReadError>>where
'd: 'a,
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
sourceimpl<'d, F: ConvertFd> SeqIterable<'d> for EncodedArgdata<'d, F>
impl<'d, F: ConvertFd> SeqIterable<'d> for EncodedArgdata<'d, F>
sourcefn iter_seq_next<'a>(
&'a self,
offset: &mut usize
) -> Option<Result<ArgdataRef<'a, 'd>, ReadError>>where
'd: 'a,
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: Copy> Copy for EncodedArgdata<'d, F>
Auto Trait Implementations
impl<'d, F> RefUnwindSafe for EncodedArgdata<'d, F>where
F: RefUnwindSafe,
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> Unpin for EncodedArgdata<'d, F>where
F: Unpin,
impl<'d, F> UnwindSafe for EncodedArgdata<'d, F>where
F: UnwindSafe,
Blanket Implementations
sourceimpl<'d, A> ArgdataExt<'d> for Awhere
A: Argdata<'d> + ?Sized,
impl<'d, A> ArgdataExt<'d> for Awhere
A: Argdata<'d> + ?Sized,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more