[][src]Struct probe_rs_rtt::Rtt

pub struct Rtt { /* fields omitted */ }

The RTT interface.

Use Rtt::attach to attach to a probe-rs Core and detect channels.

Implementations

impl Rtt[src]

pub fn attach(session: Arc<Mutex<Session>>) -> Result<Rtt, Error>[src]

Attempts to detect an RTT control block anywhere in the target RAM and returns an instance if a valid control block was found.

core can be e.g. an owned Core or a shared Rc<Core>. The session is only borrowed temporarily during detection.

pub fn attach_region(
    session: Arc<Mutex<Session>>,
    region: &ScanRegion
) -> Result<Rtt, Error>
[src]

Attempts to detect an RTT control block in the specified RAM region(s) and returns an instance if a valid control block was found.

core can be e.g. an owned Core or a shared Rc<Core>. The session is only borrowed temporarily during detection.

pub fn ptr(&self) -> u32[src]

Returns the memory address of the control block in target memory.

pub fn up_channels(&mut self) -> &mut Channels<UpChannel>[src]

Gets the detected up channels.

pub fn down_channels(&mut self) -> &mut Channels<DownChannel>[src]

Gets the detected down channels.

Trait Implementations

impl Debug for Rtt[src]

Auto Trait Implementations

impl RefUnwindSafe for Rtt[src]

impl !Send for Rtt[src]

impl !Sync for Rtt[src]

impl Unpin for Rtt[src]

impl UnwindSafe for Rtt[src]

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<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.