pub enum ReadAtLen {
All,
Exact(u64),
AtMost(u64),
}
Available on crate feature
rpc
only.Expand description
Defines the way to read bytes.
Variants§
All
Reads all available bytes.
Exact(u64)
Reads exactly this many bytes, erroring out on larger or smaller.
AtMost(u64)
Reads at most this many bytes.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for ReadAtLen
impl<'de> Deserialize<'de> for ReadAtLen
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ReadAtLen
Auto Trait Implementations§
impl Freeze for ReadAtLen
impl RefUnwindSafe for ReadAtLen
impl Send for ReadAtLen
impl Sync for ReadAtLen
impl Unpin for ReadAtLen
impl UnwindSafe for ReadAtLen
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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