pub struct DecodeContext {
pub callsign_hash_table: Option<Arc<dyn Any + Send + Sync>>,
}Expand description
Side information passed to MessageCodec::unpack.
callsign_hash_table is an opaque pointer the protocol crate
downcasts to its own table type — generic code does not need to know the
shape. This keeps mfsk-msg optional at the mfsk-core level.
Fields§
§callsign_hash_table: Option<Arc<dyn Any + Send + Sync>>Optional hashed-callsign lookup owned by the caller. Concrete layout is
protocol-defined; interpret via Any::downcast_ref inside the codec.
Trait Implementations§
Source§impl Clone for DecodeContext
impl Clone for DecodeContext
Source§fn clone(&self) -> DecodeContext
fn clone(&self) -> DecodeContext
Returns a duplicate of the value. Read more
1.0.0 · 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 DecodeContext
impl Debug for DecodeContext
Source§impl Default for DecodeContext
impl Default for DecodeContext
Source§fn default() -> DecodeContext
fn default() -> DecodeContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecodeContext
impl !RefUnwindSafe for DecodeContext
impl Send for DecodeContext
impl Sync for DecodeContext
impl Unpin for DecodeContext
impl UnsafeUnpin for DecodeContext
impl !UnwindSafe for DecodeContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more