pub struct RawChannel { /* private fields */ }
Implementations§
Source§impl RawChannel
impl RawChannel
pub fn new( id: u16, writer: Sender<PacketBytes>, reader: Receiver<Vec<u8>>, ) -> Self
pub async fn rx_cbor<T: Decode>(&mut self) -> Result<T, ProtocolError>
pub async fn fill_buf( &mut self, expected_bytes: usize, ) -> Result<(), ProtocolError>
pub async fn rx_cbor_loop<T: Decode>(&mut self) -> Result<T, ProtocolError>
pub async fn tx_proto<T: Protocol>( &self, time: Time, respond: bool, t: T, ) -> Result<(), ProtocolError>
Auto Trait Implementations§
impl Freeze for RawChannel
impl RefUnwindSafe for RawChannel
impl Send for RawChannel
impl Sync for RawChannel
impl Unpin for RawChannel
impl UnwindSafe for RawChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more