rsocket_rust 0.6.0

rsocket-rust is an implementation of the RSocket protocol in Rust.
Documentation
use super::{Body, Frame};

#[derive(Debug, PartialEq)]
pub struct Cancel {}

pub struct CancelBuilder {
    stream_id: u32,
    flag: u16,
}

impl CancelBuilder {
    pub fn build(self) -> Frame {
        Frame::new(self.stream_id, Body::Cancel(), self.flag)
    }
}

impl Cancel {
    pub fn builder(stream_id: u32, flag: u16) -> CancelBuilder {
        CancelBuilder { stream_id, flag }
    }
}