pub struct Protocol { /* private fields */ }Expand description
Zello protocol handler
Implementations§
Source§impl Protocol
impl Protocol
Sourcepub async fn send_with_seq(&mut self, message: Message) -> Result<u32>
pub async fn send_with_seq(&mut self, message: Message) -> Result<u32>
Sourcepub async fn receive(&mut self) -> Result<Option<IncomingMessage>>
pub async fn receive(&mut self) -> Result<Option<IncomingMessage>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Protocol
impl !RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl !UnwindSafe for Protocol
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