Skip to content

Allow errors in message parsing #271

@davidsteiner

Description

@davidsteiner

Currently, the inbound message parsing trait doesn't allow for errors to happen:

pub trait InboundMessage: Clone + Send + 'static {
fn parse(message: &Message) -> Self;
}

This isn't always realistic. We should allow implementors to returns errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions