[][src]Struct rosrust::api::Ros

pub struct Ros { /* fields omitted */ }

Methods

impl Ros[src][]

pub fn new(name: &str) -> Result<Ros>[src]

pub fn uri(&self) -> &str[src]

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

pub fn hostname(&self) -> &str[src]

pub fn bind_address(&self) -> &str[src]

pub fn now(&self) -> Time[src]

pub fn delay(&self, d: Duration) -> Delay[src]

pub fn shutdown_sender(&self) -> Arc<ShutdownManager>[src]

pub fn rate(&self, rate: f64) -> Rate[src]

pub fn is_ok(&self) -> bool[src]

pub fn spin(&self) -> Spinner[src]

pub fn param(&self, name: &str) -> Option<Parameter>[src]

pub fn parameters(&self) -> Result<Vec<String>, ResponseError>[src]

pub fn state(&self) -> Result<SystemState, ResponseError>[src]

pub fn topics(&self) -> Result<Vec<Topic>, ResponseError>[src]

pub fn client<T: ServicePair>(&self, service: &str) -> Result<Client<T>>[src]

pub fn wait_for_service(
    &self,
    service: &str,
    timeout: Option<Duration>
) -> Result<()>
[src]

pub fn service<T, F>(&self, service: &str, handler: F) -> Result<Service> where
    T: ServicePair,
    F: Fn(T::Request) -> Result<T::Response, String> + Send + Sync + 'static, 
[src]

pub fn subscribe<T, F>(
    &self,
    topic: &str,
    queue_size: usize,
    callback: F
) -> Result<Subscriber> where
    T: Message,
    F: Fn(T) + Send + 'static, 
[src]

pub fn subscribe_with_ids<T, F>(
    &self,
    topic: &str,
    queue_size: usize,
    callback: F
) -> Result<Subscriber> where
    T: Message,
    F: Fn(T, &str) + Send + 'static, 
[src]

pub fn publish<T>(&self, topic: &str, queue_size: usize) -> Result<Publisher<T>> where
    T: Message
[src]

pub fn log(&self, level: i8, msg: String, file: &str, line: u32)[src]

Auto Trait Implementations

impl !RefUnwindSafe for Ros

impl Send for Ros

impl Sync for Ros

impl Unpin for Ros

impl !UnwindSafe for Ros

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.

impl<T> Typeable for T where
    T: Any
[src][+]