at_commands/lowlevel/
write_to.rs

1// Copyright 2020 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 std::io;
6
7/// Trait for AT types which serialize themselves.
8pub trait WriteTo {
9    fn write_to<W: io::Write>(&self, sink: &mut W) -> io::Result<()>;
10}