[][src]Enum rtsp_types::StatusCode

pub enum StatusCode {
    Continue,
    Ok,
    MovedPermanently,
    Found,
    SeeOther,
    NotModified,
    UseProxy,
    BadRequest,
    Unauthorized,
    PaymentRequired,
    Forbidden,
    NotFound,
    MethodNotAllowed,
    NotAcceptable,
    ProxyAuthenticationRequired,
    RequestTimeout,
    Gone,
    PreconditionFailed,
    RequestMessageBodyTooLarge,
    RequestURITooLong,
    UnsupportedMediaType,
    ParameterNotUnderstood,
    Reserved,
    NotEnoughBandwidth,
    SessionNotFound,
    MethodNotValidInThisState,
    HeaderFieldNotValidForResource,
    InvalidRange,
    ParameterIsReadOnly,
    AggregateOperationNotAllowed,
    OnlyAggregateOperationAllowed,
    UnsupportedTransport,
    DestinationUnreachable,
    DestinationProhibited,
    DataTransportNotReadyYet,
    NotificationReasonUnknown,
    KeyManagementError,
    ConnectionAuthorizationRequired,
    ConnectionCredentialsNotAccepted,
    FailureToEstablishSecureConnection,
    InternalServerError,
    NotImplemented,
    BadGateway,
    ServiceUnavailable,
    GatewayTimeout,
    RTSPVersionNotSupported,
    OptionNotSupported,
    ProxyUnavailable,
    Extension(u16),
}

RTSP response status codes.

These are defined in RFC 7826 section 17 together with their semantics for the different requests.

Variants

Continue

Continue

Ok

Ok

MovedPermanently

Moved permanently

Found

Found

SeeOther

See other

NotModified

Not modified

UseProxy

Use proxy

BadRequest

Bad request

Unauthorized

Unauthorized

PaymentRequired

Payment required

Forbidden

Forbidden

NotFound

Not found

MethodNotAllowed

Method not allowed

NotAcceptable

Not acceptable

ProxyAuthenticationRequired

Proxy authentication required

RequestTimeout

Request timeout

Gone

Gone

PreconditionFailed

Precondition failed

RequestMessageBodyTooLarge

Request message body too large

RequestURITooLong

Request URI too long

UnsupportedMediaType

Unsupported media type

ParameterNotUnderstood

Parameter not understood

Reserved

Reserved

NotEnoughBandwidth

Not enough bandwidth

SessionNotFound

Session not found

MethodNotValidInThisState

Method not valid in this state

HeaderFieldNotValidForResource

Header field not valid for resource

InvalidRange

Invalid range

ParameterIsReadOnly

Parameter is read-only

AggregateOperationNotAllowed

Aggregate operation not allowed

OnlyAggregateOperationAllowed

Only aggregate operation allowed

UnsupportedTransport

Unsupported transport

DestinationUnreachable

Destination unreachable

DestinationProhibited

Destination prohibited

DataTransportNotReadyYet

Data transport not ready yet

NotificationReasonUnknown

Notification reason unknown

KeyManagementError

Key management error

ConnectionAuthorizationRequired

Connection authorization required

ConnectionCredentialsNotAccepted

Connection credentials not accepted

FailureToEstablishSecureConnection

Failure to establish secure connection

InternalServerError

Internal server error

NotImplemented

Not implemented

BadGateway

Bad gateway

ServiceUnavailable

Service unavailable

GatewayTimeout

Gateway timeout

RTSPVersionNotSupported

RTSP version not supported

OptionNotSupported

Option not supported

ProxyUnavailable

Proxy unavailable

Extension(u16)

Extension status code

Implementations

impl StatusCode[src]

pub fn is_informational(self) -> bool[src]

Returns true if the status code is 1xx.

pub fn is_success(self) -> bool[src]

Returns true if the status code is 2xx.

pub fn is_redirection(self) -> bool[src]

Returns true if the status code is 3xx.

pub fn is_client_error(self) -> bool[src]

Returns true if the status code is 4xx.

pub fn is_server_error(self) -> bool[src]

Returns true if the status code is 5xx.

Trait Implementations

impl Clone for StatusCode[src]

impl Copy for StatusCode[src]

impl Debug for StatusCode[src]

impl Display for StatusCode[src]

Provides the default reason phrase for the StatusCode.

impl Eq for StatusCode[src]

impl From<StatusCode> for u16[src]

Converts to the numeric value of a StatusCode.

impl From<u16> for StatusCode[src]

Converts from the numeric value of a StatusCode.

impl PartialEq<StatusCode> for StatusCode[src]

impl StructuralEq for StatusCode[src]

impl StructuralPartialEq for StatusCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.