Struct ConnectUdpSocketConfig
pub struct ConnectUdpSocketConfig { /* private fields */ }masque only.Expand description
Limits of a ConnectUdpSocket.
Implementations§
§impl ConnectUdpSocketConfig
impl ConnectUdpSocketConfig
pub fn maybe_with_min_payload(
self,
min: Option<usize>,
) -> ConnectUdpSocketConfig
pub fn maybe_with_min_payload( self, min: Option<usize>, ) -> ConnectUdpSocketConfig
The smallest payload limit the owner can work with, such as QUIC’s 1200 bytes: once
the native limit falls below it, sends fail with ConnectUdpCapacityError and the
tunnel closes (ConnectUdpClose::Capacity) instead of losing every payload.
pub fn maybe_set_min_payload(
&mut self,
min: Option<usize>,
) -> &mut ConnectUdpSocketConfig
pub fn maybe_set_min_payload( &mut self, min: Option<usize>, ) -> &mut ConnectUdpSocketConfig
The smallest payload limit the owner can work with, such as QUIC’s 1200 bytes: once
the native limit falls below it, sends fail with ConnectUdpCapacityError and the
tunnel closes (ConnectUdpClose::Capacity) instead of losing every payload.
pub fn with_min_payload(self, min: usize) -> ConnectUdpSocketConfig
pub fn with_min_payload(self, min: usize) -> ConnectUdpSocketConfig
The smallest payload limit the owner can work with, such as QUIC’s 1200 bytes: once
the native limit falls below it, sends fail with ConnectUdpCapacityError and the
tunnel closes (ConnectUdpClose::Capacity) instead of losing every payload.
pub fn set_min_payload(&mut self, min: usize) -> &mut ConnectUdpSocketConfig
pub fn set_min_payload(&mut self, min: usize) -> &mut ConnectUdpSocketConfig
The smallest payload limit the owner can work with, such as QUIC’s 1200 bytes: once
the native limit falls below it, sends fail with ConnectUdpCapacityError and the
tunnel closes (ConnectUdpClose::Capacity) instead of losing every payload.
pub fn without_min_payload(self) -> ConnectUdpSocketConfig
pub fn without_min_payload(self) -> ConnectUdpSocketConfig
The smallest payload limit the owner can work with, such as QUIC’s 1200 bytes: once
the native limit falls below it, sends fail with ConnectUdpCapacityError and the
tunnel closes (ConnectUdpClose::Capacity) instead of losing every payload.
pub fn unset_min_payload(&mut self) -> &mut ConnectUdpSocketConfig
pub fn unset_min_payload(&mut self) -> &mut ConnectUdpSocketConfig
The smallest payload limit the owner can work with, such as QUIC’s 1200 bytes: once
the native limit falls below it, sends fail with ConnectUdpCapacityError and the
tunnel closes (ConnectUdpClose::Capacity) instead of losing every payload.
pub fn with_queue(self, queue: NonZero<usize>) -> ConnectUdpSocketConfig
pub fn with_queue(self, queue: NonZero<usize>) -> ConnectUdpSocketConfig
UDP payloads accepted for sending but not yet handed to the HTTP carrier.
pub fn set_queue(
&mut self,
queue: NonZero<usize>,
) -> &mut ConnectUdpSocketConfig
pub fn set_queue( &mut self, queue: NonZero<usize>, ) -> &mut ConnectUdpSocketConfig
UDP payloads accepted for sending but not yet handed to the HTTP carrier.
pub fn with_idle_timeout(self, timeout: Duration) -> ConnectUdpSocketConfig
pub fn with_idle_timeout(self, timeout: Duration) -> ConnectUdpSocketConfig
How long the tunnel may forward nothing before it closes ([ConnectUdpStats]
drops never count as progress).
pub fn set_idle_timeout(
&mut self,
timeout: Duration,
) -> &mut ConnectUdpSocketConfig
pub fn set_idle_timeout( &mut self, timeout: Duration, ) -> &mut ConnectUdpSocketConfig
How long the tunnel may forward nothing before it closes ([ConnectUdpStats]
drops never count as progress).
Trait Implementations§
§impl Clone for ConnectUdpSocketConfig
impl Clone for ConnectUdpSocketConfig
§fn clone(&self) -> ConnectUdpSocketConfig
fn clone(&self) -> ConnectUdpSocketConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ConnectUdpSocketConfig
§impl Debug for ConnectUdpSocketConfig
impl Debug for ConnectUdpSocketConfig
§impl Default for ConnectUdpSocketConfig
impl Default for ConnectUdpSocketConfig
§fn default() -> ConnectUdpSocketConfig
fn default() -> ConnectUdpSocketConfig
Auto Trait Implementations§
impl Freeze for ConnectUdpSocketConfig
impl RefUnwindSafe for ConnectUdpSocketConfig
impl Send for ConnectUdpSocketConfig
impl Sync for ConnectUdpSocketConfig
impl Unpin for ConnectUdpSocketConfig
impl UnsafeUnpin for ConnectUdpSocketConfig
impl UnwindSafe for ConnectUdpSocketConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more