Struct StatusCode
pub struct StatusCode(/* private fields */);Available on crate feature
icap only.Expand description
A three-digit ICAP response status code.
Implementations§
§impl StatusCode
impl StatusCode
pub const CONTINUE: StatusCode
pub const CONTINUE: StatusCode
Continue after a Preview.
pub const OK: StatusCode
pub const OK: StatusCode
Successful adaptation.
pub const CREATED: StatusCode
pub const CREATED: StatusCode
Successful adaptation returned as a created representation.
pub const NO_MODIFICATION_NEEDED: StatusCode
pub const NO_MODIFICATION_NEEDED: StatusCode
No adaptation was required.
pub const PARTIAL_CONTENT: StatusCode
pub const PARTIAL_CONTENT: StatusCode
Partial adaptation response.
pub const BAD_REQUEST: StatusCode
pub const BAD_REQUEST: StatusCode
Malformed ICAP request.
pub const NOT_FOUND: StatusCode
pub const NOT_FOUND: StatusCode
ICAP service not found.
pub const METHOD_NOT_ALLOWED: StatusCode
pub const METHOD_NOT_ALLOWED: StatusCode
Method unsupported by the service.
pub const REQUEST_TIMEOUT: StatusCode
pub const REQUEST_TIMEOUT: StatusCode
ICAP request timeout.
pub const BAD_COMPOSITION: StatusCode
pub const BAD_COMPOSITION: StatusCode
Encapsulated sections do not match the service’s needs.
pub const INTERNAL_SERVER_ERROR: StatusCode
pub const INTERNAL_SERVER_ERROR: StatusCode
Internal ICAP server error.
pub const NOT_IMPLEMENTED: StatusCode
pub const NOT_IMPLEMENTED: StatusCode
ICAP method not implemented.
pub const BAD_GATEWAY: StatusCode
pub const BAD_GATEWAY: StatusCode
Upstream ICAP proxy failure.
pub const SERVICE_UNAVAILABLE: StatusCode
pub const SERVICE_UNAVAILABLE: StatusCode
ICAP service overloaded.
pub const VERSION_NOT_SUPPORTED: StatusCode
pub const VERSION_NOT_SUPPORTED: StatusCode
ICAP version unsupported by the server.
pub const fn from_u16(value: u16) -> Result<StatusCode, InvalidStatusCode>
pub const fn from_u16(value: u16) -> Result<StatusCode, InvalidStatusCode>
Construct a three-digit status code.
pub fn from_bytes(value: &[u8]) -> Result<StatusCode, InvalidStatusCode>
pub fn from_bytes(value: &[u8]) -> Result<StatusCode, InvalidStatusCode>
Parse a three-digit ICAP status code.
Trait Implementations§
§impl Clone for StatusCode
impl Clone for StatusCode
§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatusCode
§impl Debug for StatusCode
impl Debug for StatusCode
§impl Display for StatusCode
impl Display for StatusCode
impl Eq for StatusCode
§impl FromStr for StatusCode
impl FromStr for StatusCode
§type Err = InvalidStatusCode
type Err = InvalidStatusCode
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<StatusCode, <StatusCode as FromStr>::Err>
fn from_str(value: &str) -> Result<StatusCode, <StatusCode as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for StatusCode
impl Hash for StatusCode
§impl Ord for StatusCode
impl Ord for StatusCode
§fn cmp(&self, other: &StatusCode) -> Ordering
fn cmp(&self, other: &StatusCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for StatusCode
impl PartialEq for StatusCode
§impl PartialOrd for StatusCode
impl PartialOrd for StatusCode
impl StructuralPartialEq for StatusCode
§impl TryFrom<&[u8]> for StatusCode
impl TryFrom<&[u8]> for StatusCode
§type Error = InvalidStatusCode
type Error = InvalidStatusCode
The type returned in the event of a conversion error.
§fn try_from(
value: &[u8],
) -> Result<StatusCode, <StatusCode as TryFrom<&[u8]>>::Error>
fn try_from( value: &[u8], ) -> Result<StatusCode, <StatusCode as TryFrom<&[u8]>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StatusCode
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnsafeUnpin for StatusCode
impl UnwindSafe for StatusCode
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
Mutably borrows from an owned value. Read more
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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> ⓘ
Converts
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> ⓘ
Converts
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>
Wrap the input message
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>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more§impl<T, U> RamaTryFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> RamaTryFrom<T> for Uwhere
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn rama_try_from(value: T) -> Result<U, <U as RamaTryFrom<T>>::Error>
§impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for Twhere
U: RamaTryFrom<T, CrateMarker>,
impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for Twhere
U: RamaTryFrom<T, CrateMarker>,
type Error = <U as RamaTryFrom<T, CrateMarker>>::Error
fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T, CrateMarker>>::Error>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.