Enum libp2p_mplex::MaxBufferBehaviour
source · pub enum MaxBufferBehaviour {
CloseAll,
Block,
}
Expand description
Behaviour when the maximum length of the buffer is reached.
Variants
CloseAll
Produce an error on all the substreams.
Block
No new message will be read from the underlying connection if the buffer is full.
This can potentially introduce a deadlock if you are waiting for a message from a substream before processing the messages received on another substream.
Trait Implementations
sourceimpl Clone for MaxBufferBehaviour
impl Clone for MaxBufferBehaviour
sourcefn clone(&self) -> MaxBufferBehaviour
fn clone(&self) -> MaxBufferBehaviour
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MaxBufferBehaviour
impl Debug for MaxBufferBehaviour
sourceimpl PartialEq<MaxBufferBehaviour> for MaxBufferBehaviour
impl PartialEq<MaxBufferBehaviour> for MaxBufferBehaviour
sourcefn eq(&self, other: &MaxBufferBehaviour) -> bool
fn eq(&self, other: &MaxBufferBehaviour) -> bool
impl Copy for MaxBufferBehaviour
impl Eq for MaxBufferBehaviour
impl StructuralEq for MaxBufferBehaviour
impl StructuralPartialEq for MaxBufferBehaviour
Auto Trait Implementations
impl RefUnwindSafe for MaxBufferBehaviour
impl Send for MaxBufferBehaviour
impl Sync for MaxBufferBehaviour
impl Unpin for MaxBufferBehaviour
impl UnwindSafe for MaxBufferBehaviour
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more