[][src]Struct probe_rs_rtt::DownChannel

pub struct DownChannel(_);

RTT down (host to target) channel.

Implementations

impl DownChannel[src]

pub fn number(&self) -> usize[src]

Returns the number of the channel.

pub fn name(&self) -> Option<&str>[src]

Returns the name of the channel or None if there is none.

pub fn buffer_size(&self) -> usize[src]

Returns the buffer size in bytes. Note that the usable size is one byte less due to how the ring buffer is implemented.

pub fn write(&self, buf: &[u8]) -> Result<usize, Error>[src]

Writes some bytes into the channel buffer and returns the number of bytes written.

This method will not block waiting for space to become available in the channel buffer, and may not write all of buf.

Trait Implementations

impl Debug for DownChannel[src]

impl RttChannel for DownChannel[src]

pub fn number(&self) -> usize[src]

Returns the number of the channel.

impl Write for DownChannel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<Ctx, W> IOwrite<Ctx> for W where
    Ctx: Copy,
    W: Write + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<W> WriteBytesExt for W where
    W: Write + ?Sized