Struct sozu_command_lib::channel::Channel[][src]

pub struct Channel<Tx, Rx> {
    pub sock: UnixStream,
    pub back_buf: Buffer,
    pub readiness: Ready,
    pub interest: Ready,
    // some fields omitted
}

Fields

sock: UnixStreamback_buf: Bufferreadiness: Readyinterest: Ready

Implementations

impl<Tx: Debug + Serialize, Rx: Debug + DeserializeOwned> Channel<Tx, Rx>[src]

pub fn from_path(
    path: &str,
    buffer_size: usize,
    max_buffer_size: usize
) -> Result<Channel<Tx, Rx>, Error>
[src]

pub fn new(
    sock: UnixStream,
    buffer_size: usize,
    max_buffer_size: usize
) -> Channel<Tx, Rx>

Notable traits for Channel<Tx, Rx>

impl<Tx: Debug + Serialize, Rx: Debug + DeserializeOwned> Iterator for Channel<Tx, Rx> type Item = Rx;
[src]

pub fn into<Tx2: Debug + Serialize, Rx2: Debug + DeserializeOwned>(
    self
) -> Channel<Tx2, Rx2>

Notable traits for Channel<Tx, Rx>

impl<Tx: Debug + Serialize, Rx: Debug + DeserializeOwned> Iterator for Channel<Tx, Rx> type Item = Rx;
[src]

pub fn set_nonblocking(&mut self, nonblocking: bool)[src]

pub fn set_blocking(&mut self, blocking: bool)[src]

pub fn fd(&self) -> RawFd[src]

pub fn handle_events(&mut self, events: Ready)[src]

pub fn readiness(&self) -> Ready[src]

pub fn run(&mut self)[src]

pub fn readable(&mut self) -> Result<usize, ConnError>[src]

pub fn writable(&mut self) -> Result<usize, ConnError>[src]

pub fn read_message(&mut self) -> Option<Rx>[src]

pub fn read_message_nonblocking(&mut self) -> Option<Rx>[src]

pub fn read_message_blocking(&mut self) -> Option<Rx>[src]

pub fn write_message(&mut self, message: &Tx) -> bool[src]

pub fn write_message_nonblocking(&mut self, message: &Tx) -> bool[src]

pub fn write_message_blocking(&mut self, message: &Tx) -> bool[src]

impl<Tx: Debug + DeserializeOwned + Serialize, Rx: Debug + DeserializeOwned + Serialize> Channel<Tx, Rx>[src]

pub fn generate(
    buffer_size: usize,
    max_buffer_size: usize
) -> Result<(Channel<Tx, Rx>, Channel<Rx, Tx>)>
[src]

pub fn generate_nonblocking(
    buffer_size: usize,
    max_buffer_size: usize
) -> Result<(Channel<Tx, Rx>, Channel<Rx, Tx>)>
[src]

Trait Implementations

impl<Tx, Rx> Evented for Channel<Tx, Rx>[src]

impl<Tx: Debug + Serialize, Rx: Debug + DeserializeOwned> Iterator for Channel<Tx, Rx>[src]

type Item = Rx

The type of the elements being iterated over.

Auto Trait Implementations

impl<Tx, Rx> RefUnwindSafe for Channel<Tx, Rx> where
    Rx: RefUnwindSafe,
    Tx: RefUnwindSafe

impl<Tx, Rx> Send for Channel<Tx, Rx> where
    Rx: Send,
    Tx: Send

impl<Tx, Rx> Sync for Channel<Tx, Rx> where
    Rx: Sync,
    Tx: Sync

impl<Tx, Rx> Unpin for Channel<Tx, Rx> where
    Rx: Unpin,
    Tx: Unpin

impl<Tx, Rx> UnwindSafe for Channel<Tx, Rx> where
    Rx: UnwindSafe,
    Tx: UnwindSafe

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Same<T> for T

type Output = T

Should always be Self

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.