diagnostics_message/constants.rs
1// Copyright 2021 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use crate::fx_log_metadata_t;
6use fidl_fuchsia_logger::MAX_DATAGRAM_LEN_BYTES;
7
8pub const METADATA_SIZE: usize = std::mem::size_of::<fx_log_metadata_t>();
9pub const MIN_PACKET_SIZE: usize = METADATA_SIZE + 1;
10
11pub const MAX_DATAGRAM_LEN: usize = MAX_DATAGRAM_LEN_BYTES as _;
12pub const MAX_TAGS: usize = 5;
13pub const MAX_TAG_LEN: usize = 64;