pub struct QuicTransport { /* private fields */ }Expand description
QUIC-based RPC transport for non-co-located services.
Encodes requests as a simple framed message on a QUIC bidi stream:
[method_id: u32 LE (4B)] [request_id: u64 LE (8B)]
[payload_len: u32 LE (4B)] [payload: [u8; payload_len]]The response is:
[request_id: u64 LE (8B)] [status: u8 (1B)]
[payload_len: u32 LE (4B)] [payload: [u8; payload_len]]This is a stub transport that delegates to a user-provided send/receive callback, since the actual QUIC connection setup varies by platform.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for QuicTransport
impl !RefUnwindSafe for QuicTransport
impl Send for QuicTransport
impl Sync for QuicTransport
impl Unpin for QuicTransport
impl !UnwindSafe for QuicTransport
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