pub struct Stream { /* private fields */ }Implementations§
Source§impl Stream
impl Stream
pub fn new<T: ToSocketAddrs>( address: T, rpc: Rpc, ) -> Result<Self, ConnectionErr>
pub fn add_stream( &mut self, service: String, procedure: String, args: Vec<Vec<u8>>, ) -> Result<u32, TransceiverError>
pub fn remove_stream(&mut self, id: u32) -> Result<(), TransceiverError>
pub fn receive( &mut self, ) -> Result<BTreeMap<u32, Option<Vec<u8>>>, TransceiverError>
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
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