Skip to content

protocol: add as_bytes() impl to V4l2Event types - #32

Open
aesteve-rh wants to merge 1 commit into
chromeos:mainfrom
aesteve-rh:v4l2event-asbytes
Open

protocol: add as_bytes() impl to V4l2Event types#32
aesteve-rh wants to merge 1 commit into
chromeos:mainfrom
aesteve-rh:v4l2event-asbytes

Conversation

@aesteve-rh

Copy link
Copy Markdown
Contributor

Currently ErrorEvent derives IntoBytes, providing
an as_bytes() implementation. However, DequeueBufferEvent and SessionEvent do not derive IntoBytes, which makes its usage asymmetric (e.g., in a match clause).

Since deriving IntoBytes is not possible, implement the method directly in the structs.

Currently ErrorEvent derives IntoBytes, providing
an as_bytes() implementation. However, DequeueBufferEvent
and SessionEvent do not derive IntoBytes, which makes
its usage asymmetric (e.g., in a match clause).

Since deriving IntoBytes is not possible, implement the
method directly in the structs.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant