n><span class="macro">!</span>(<span class="ident">serial</span>.<span class="ident">write</span>(<span class="ident">byte</span>))<span class="question-mark">?</span>;
    }

    <span class="prelude-val">Ok</span>(())
}
</pre></div>
<ul>
<li>Blocking serial read with timeout</li>
</ul>

<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">embedded_hal</span> <span class="kw">as</span> <span class="ident">hal</sp