pub struct RaftHttpClient { /* private fields */ }Expand description
HTTP client for Raft RPCs using postcard2 serialization.
Maintains separate timeout configurations for regular RPCs and snapshot transfers. Optionally attaches a bearer token to every outgoing request for authentication against the Raft service.
Implementations§
Trait Implementations§
Source§impl Clone for RaftHttpClient
impl Clone for RaftHttpClient
Source§fn clone(&self) -> RaftHttpClient
fn clone(&self) -> RaftHttpClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RaftHttpClient
impl !RefUnwindSafe for RaftHttpClient
impl Send for RaftHttpClient
impl Sync for RaftHttpClient
impl Unpin for RaftHttpClient
impl UnsafeUnpin for RaftHttpClient
impl !UnwindSafe for RaftHttpClient
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