pub enum ReadEvalSource {
Text(String),
Bytes(Vec<u8>),
Expr(Expr),
}Expand description
Source accepted by the read-eval broker.
Variants§
Text(String)
Decode this text through the request codec before evaluation.
Bytes(Vec<u8>)
Decode these bytes through the request codec before evaluation.
Expr(Expr)
Evaluate an already-decoded expression.
Trait Implementations§
Source§impl Clone for ReadEvalSource
impl Clone for ReadEvalSource
Source§fn clone(&self) -> ReadEvalSource
fn clone(&self) -> ReadEvalSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadEvalSource
impl Debug for ReadEvalSource
impl Eq for ReadEvalSource
Source§impl PartialEq for ReadEvalSource
impl PartialEq for ReadEvalSource
impl StructuralPartialEq for ReadEvalSource
Auto Trait Implementations§
impl Freeze for ReadEvalSource
impl RefUnwindSafe for ReadEvalSource
impl Send for ReadEvalSource
impl Sync for ReadEvalSource
impl Unpin for ReadEvalSource
impl UnsafeUnpin for ReadEvalSource
impl UnwindSafe for ReadEvalSource
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