pub enum StatusCode {
Show 49 variants
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),
}Expand description
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
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
Service unavailable
GatewayTimeout
Gateway timeout
RTSPVersionNotSupported
RTSP version not supported
OptionNotSupported
Option not supported
Proxy unavailable
Extension(u16)
Extension status code
Implementations§
Source§impl StatusCode
impl StatusCode
Sourcepub fn is_informational(self) -> bool
pub fn is_informational(self) -> bool
Returns true if the status code is 1xx.
Sourcepub fn is_success(self) -> bool
pub fn is_success(self) -> bool
Returns true if the status code is 2xx.
Sourcepub fn is_redirection(self) -> bool
pub fn is_redirection(self) -> bool
Returns true if the status code is 3xx.
Sourcepub fn is_client_error(self) -> bool
pub fn is_client_error(self) -> bool
Returns true if the status code is 4xx.
Sourcepub fn is_server_error(self) -> bool
pub fn is_server_error(self) -> bool
Returns true if the status code is 5xx.
Trait Implementations§
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StatusCode
impl Debug for StatusCode
Source§impl Display for StatusCode
Provides the default reason phrase for the StatusCode.
impl Display for StatusCode
Provides the default reason phrase for the StatusCode.
Source§impl From<StatusCode> for u16
Converts to the numeric value of a StatusCode.
impl From<StatusCode> for u16
Converts to the numeric value of a StatusCode.
Source§fn from(v: StatusCode) -> Self
fn from(v: StatusCode) -> Self
Source§impl From<u16> for StatusCode
Converts from the numeric value of a StatusCode.
impl From<u16> for StatusCode
Converts from the numeric value of a StatusCode.