#[non_exhaustive]pub enum AppServerLimit {
FrameBytes,
QueuedMessages,
QueuedBytes,
WriterQueueMessages,
WriterQueueBytes,
}Expand description
One of the opt-in transport limits, as reported by
Error::AppServerLimitExceeded.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FrameBytes
The bytes in one line from the server, newline included. Set with
AppServerBuilder::max_frame_bytes.
QueuedMessages
Messages waiting for AppServer::next_message. Set with
AppServerBuilder::max_queued_messages.
QueuedBytes
Bytes waiting for AppServer::next_message. Set with
AppServerBuilder::max_queued_bytes.
WriterQueueMessages
Lines waiting to be written to the server. Set with
AppServerBuilder::max_writer_queue_messages.
WriterQueueBytes
Bytes waiting to be written to the server. Set with
AppServerBuilder::max_writer_queue_bytes.
Trait Implementations§
Source§impl Clone for AppServerLimit
impl Clone for AppServerLimit
impl Copy for AppServerLimit
Source§impl Debug for AppServerLimit
impl Debug for AppServerLimit
Source§impl Display for AppServerLimit
impl Display for AppServerLimit
impl Eq for AppServerLimit
Source§impl Hash for AppServerLimit
impl Hash for AppServerLimit
Source§impl PartialEq for AppServerLimit
impl PartialEq for AppServerLimit
impl StructuralPartialEq for AppServerLimit
Auto Trait Implementations§
impl Forget for AppServerLimit
impl Freeze for AppServerLimit
impl Move for AppServerLimit
impl RefUnwindSafe for AppServerLimit
impl Send for AppServerLimit
impl Sync for AppServerLimit
impl Unpin for AppServerLimit
impl UnsafeUnpin for AppServerLimit
impl UnwindSafe for AppServerLimit
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