Struct zbus::MessageFields [−][src]
pub struct MessageFields<'m>(_);Expand description
A collection of MessageField instances.
Implementations
Appends a MessageField to the collection of fields in the message.
Replaces a MessageField from the collection of fields with one with the same code,
returning the old value if present.
Returns a slice with all the MessageField in the message.
Gets a reference to a specific MessageField by its code.
Returns None if the message has no such field.
Consumes the MessageFields and returns a specific MessageField by its code.
Returns None if the message has no such field.
Trait Implementations
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
Auto Trait Implementations
impl<'m> RefUnwindSafe for MessageFields<'m>
impl<'m> Send for MessageFields<'m>
impl<'m> Sync for MessageFields<'m>
impl<'m> Unpin for MessageFields<'m>
impl<'m> UnwindSafe for MessageFields<'m>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
pub fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error> where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
pub fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error> where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
Get a deserializer compatible with this signature.
Get the signature for the implementing type. Read more
type NoneType = T
The none-equivalent value.