pub struct ReadCx<'a> {
pub cx: &'a mut Cx,
pub codec: CodecId,
pub read_policy: ReadPolicy,
pub limits: DecodeLimits,
}Expand description
The decode context threaded through every Decoder: the
kernel context plus the active codec id, read policy, and resource limits.
Fields§
§cx: &'a mut CxThe kernel context the decode runs against.
codec: CodecIdId of the codec performing the decode (used to tag errors).
read_policy: ReadPolicyThe read policy governing what the decode may admit.
limits: DecodeLimitsResource ceilings applied to this decode.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReadCx<'a>
impl<'a> !UnwindSafe for ReadCx<'a>
impl<'a> Freeze for ReadCx<'a>
impl<'a> Send for ReadCx<'a>
impl<'a> Sync for ReadCx<'a>
impl<'a> Unpin for ReadCx<'a>
impl<'a> UnsafeUnpin for ReadCx<'a>
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