[−][src]Struct protofish::context::MessageInfo
Message details
Fields
name: String
Message name.
full_name: String
Full message name, including package and parent type names.
self_ref: MessageRef
MessageRef
that references this message.
fields: BTreeMap<u64, MessageField>
Message fields.
oneofs: Vec<Oneof>
oneof
structures defined within the message.
inner_types: Vec<InnerType>
References to the inner types defined within this message.
Implementations
impl MessageInfo
[src]
pub fn decode(&self, data: &[u8], ctx: &Context) -> MessageValue
[src]
Decode a message.
Will panic if the message defined by the MessageRef
does not exist in this context.
Such panic means the MessageRef
came from a different context. The panic is not
guaranteed, as a message with an equal MessageRef
may exist in multiple contexts.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MessageInfo
impl Send for MessageInfo
impl Sync for MessageInfo
impl Unpin for MessageInfo
impl UnwindSafe for MessageInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,