Struct drone_core::log::Port [−][src]
pub struct Port(_);
Logger port handle.
Implementations
impl Port
[src]
impl Port
[src]pub fn new(port: u8) -> Self
[src]
pub fn is_enabled(self) -> bool
[src]
Returns true
if the debug probe is connected and listening to the
port
stream.
pub fn write_bytes(self, bytes: &[u8]) -> Self
[src]
Writes a sequence of bytes to the port.
The resulting byte sequence that will be read from the port may be
interleaved with concurrent writes. See also Port::write
for writing
atomic byte sequences.
pub fn write<T: PortWrite>(self, value: T) -> Self
[src]
Writes an atomic byte sequence to the port. T
can be one of u8
,
u16
, u32
.
Bytes are written in big-endian order. It’s guaranteed that all bytes of
value
will not be split.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
The resulting type after obtaining ownership.