Skip to content

Allow errors in message parsing #271

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

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions