pub struct BinaryBase64Codec;Expand description
Codec runtime object that carries sim-codec-binary frames as base64 text.
This domain codec is a thin text wrapper: it implements every codec role –
Decoder/Encoder, located LocatedDecoder/LocatedEncoder, and
tree TreeDecoder/TreeEncoder – by delegating frame encode/decode to
sim-codec-binary and base64-encoding the bytes on the way out and
base64-decoding them on the way in. The base64 text and the underlying bytes
are untrusted data; malformed input fails closed and is never executed.
Trait Implementations§
Source§impl Decoder for BinaryBase64Codec
impl Decoder for BinaryBase64Codec
Source§impl Encoder for BinaryBase64Codec
impl Encoder for BinaryBase64Codec
Source§impl LocatedDecoder for BinaryBase64Codec
impl LocatedDecoder for BinaryBase64Codec
Source§fn decode_located(
&self,
cx: &mut ReadCx<'_>,
input: Input,
_source_id: String,
) -> Result<LocatedExpr>
fn decode_located( &self, cx: &mut ReadCx<'_>, input: Input, _source_id: String, ) -> Result<LocatedExpr>
Source§impl LocatedEncoder for BinaryBase64Codec
impl LocatedEncoder for BinaryBase64Codec
Source§fn encode_located(
&self,
cx: &mut WriteCx<'_>,
expr: &LocatedExpr,
) -> Result<Output>
fn encode_located( &self, cx: &mut WriteCx<'_>, expr: &LocatedExpr, ) -> Result<Output>
Encode a
LocatedExpr, optionally using its origin for fidelity.Source§impl TreeDecoder for BinaryBase64Codec
impl TreeDecoder for BinaryBase64Codec
Source§fn decode_tree(
&self,
cx: &mut ReadCx<'_>,
input: Input,
_source_id: String,
) -> Result<LocatedExprTree>
fn decode_tree( &self, cx: &mut ReadCx<'_>, input: Input, _source_id: String, ) -> Result<LocatedExprTree>
Source§impl TreeEncoder for BinaryBase64Codec
impl TreeEncoder for BinaryBase64Codec
Source§fn encode_tree(
&self,
cx: &mut WriteCx<'_>,
expr: &LocatedExprTree,
) -> Result<Output>
fn encode_tree( &self, cx: &mut WriteCx<'_>, expr: &LocatedExprTree, ) -> Result<Output>
Encode a
LocatedExprTree, reproducing layout and trivia where present.Auto Trait Implementations§
impl Freeze for BinaryBase64Codec
impl RefUnwindSafe for BinaryBase64Codec
impl Send for BinaryBase64Codec
impl Sync for BinaryBase64Codec
impl Unpin for BinaryBase64Codec
impl UnsafeUnpin for BinaryBase64Codec
impl UnwindSafe for BinaryBase64Codec
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