pub struct SseMessageHandler { /* private fields */ }Expand description
HTTP POST message handler for SSE transport
Implementations§
Source§impl SseMessageHandler
impl SseMessageHandler
Sourcepub fn with_max_message_size(self, max_message_size: usize) -> Self
pub fn with_max_message_size(self, max_message_size: usize) -> Self
Set maximum accepted JSON-RPC request size for POST messages.
Sourcepub fn with_max_pending_responses(self, max_pending_responses: usize) -> Self
pub fn with_max_pending_responses(self, max_pending_responses: usize) -> Self
Set maximum number of queued POST messages.
Sourcepub fn with_max_pending_response_bytes(
self,
max_pending_response_bytes: usize,
) -> Self
pub fn with_max_pending_response_bytes( self, max_pending_response_bytes: usize, ) -> Self
Set maximum aggregate bytes queued by POST messages.
Sourcepub fn take_responses(&self) -> Vec<String>
pub fn take_responses(&self) -> Vec<String>
Get pending responses
Sourcepub fn has_pending(&self) -> bool
pub fn has_pending(&self) -> bool
Check if there are pending responses
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SseMessageHandler
impl RefUnwindSafe for SseMessageHandler
impl Send for SseMessageHandler
impl Sync for SseMessageHandler
impl Unpin for SseMessageHandler
impl UnsafeUnpin for SseMessageHandler
impl UnwindSafe for SseMessageHandler
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