Struct shout::ShoutConn [] [src]

pub struct ShoutConn {
    // some fields omitted
}

Methods

impl ShoutConn
[src]

fn send(&self, data: Vec<u8>) -> Result<i32ShoutConnError>

Sends data to the server, parsing it for format specific timing info.

fn send_raw(&self, data: Vec<u8>) -> Result<isizeShoutConnError>

Sends unparsed data to the server. Do not use this unless you know what you're doing. Returns the number of bytes writter, or < 0 on error.

fn queue_len(&self) -> isize

Returns the number of bytes on the write queue. Only makes sense in nonblocking mode.

fn sync(&self)

Sleeps the thread until the server requires more data

fn delay(&self) -> i32

Returns the amount of time the caller should wait before sending more data

fn set_metadata(&self, metadata: ShoutMetadata) -> Result<()ShoutConnError>

Sets metadata for the host

Trait Implementations

impl Drop for ShoutConn
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more