Skip to main content

StatusCode

Struct StatusCode 

Source
pub struct StatusCode { /* private fields */ }

Implementations§

Source§

impl StatusCode

Source

pub const STATUS_MASK: Self

Source

pub const BIT_MASK: Self

Source

pub const IS_ERROR: Self

Source

pub const IS_UNCERTAIN: Self

Source

pub const HISTORICAL_RAW: Self

Source

pub const HISTORICAL_CALCULATED: Self

Source

pub const HISTORICAL_INTERPOLATED: Self

Source

pub const HISTORICAL_RESERVED: Self

Source

pub const HISTORICAL_PARTIAL: Self

Source

pub const HISTORICAL_EXTRA_DATA: Self

Source

pub const HISTORICAL_MULTI_VALUE: Self

Source

pub const OVERFLOW: Self

Source

pub const LIMIT_LOW: Self

Source

pub const LIMIT_HIGH: Self

Source

pub const LIMIT_CONSTANT: Self

Source

pub const LIMIT_DATA_VALUE: Self

Source

pub const SEMANTICS_CHANGED: Self

Source

pub const STRUCTURE_CHANGED: Self

Source

pub const Good: Self

Source

pub const GoodSubscriptionTransferred: Self

Source

pub const GoodCompletesAsynchronously: Self

Source

pub const GoodOverload: Self

Source

pub const GoodClamped: Self

Source

pub const GoodLocalOverride: Self

Source

pub const GoodEntryInserted: Self

Source

pub const GoodEntryReplaced: Self

Source

pub const GoodNoData: Self

Source

pub const GoodMoreData: Self

Source

pub const GoodCommunicationEvent: Self

Source

pub const GoodShutdownEvent: Self

Source

pub const GoodCallAgain: Self

Source

pub const GoodNonCriticalTimeout: Self

Source

pub const GoodResultsMayBeIncomplete: Self

Source

pub const GoodDataIgnored: Self

Source

pub const GoodEdited: Self

Source

pub const GoodPostActionFailed: Self

Source

pub const GoodDependentValueChanged: Self

Source

pub const GoodEdited_DependentValueChanged: Self

Source

pub const GoodEdited_DominantValueChanged: Self

Source

pub const GoodEdited_DominantValueChanged_DependentValueChanged: Self

Source

pub const UncertainReferenceOutOfServer: Self

Source

pub const UncertainNoCommunicationLastUsableValue: Self

Source

pub const UncertainLastUsableValue: Self

Source

pub const UncertainSubstituteValue: Self

Source

pub const UncertainInitialValue: Self

Source

pub const UncertainSensorNotAccurate: Self

Source

pub const UncertainEngineeringUnitsExceeded: Self

Source

pub const UncertainSubNormal: Self

Source

pub const UncertainDataSubNormal: Self

Source

pub const UncertainReferenceNotDeleted: Self

Source

pub const UncertainNotAllNodesAvailable: Self

Source

pub const UncertainDominantValueChanged: Self

Source

pub const UncertainDependentValueChanged: Self

Source

pub const BadUnexpectedError: Self

Source

pub const BadInternalError: Self

Source

pub const BadOutOfMemory: Self

Source

pub const BadResourceUnavailable: Self

Source

pub const BadCommunicationError: Self

Source

pub const BadEncodingError: Self

Source

pub const BadDecodingError: Self

Source

pub const BadEncodingLimitsExceeded: Self

Source

pub const BadUnknownResponse: Self

Source

pub const BadTimeout: Self

Source

pub const BadServiceUnsupported: Self

Source

pub const BadShutdown: Self

Source

pub const BadServerNotConnected: Self

Source

pub const BadServerHalted: Self

Source

pub const BadNothingToDo: Self

Source

pub const BadTooManyOperations: Self

Source

pub const BadDataTypeIdUnknown: Self

Source

pub const BadCertificateInvalid: Self

Source

pub const BadSecurityChecksFailed: Self

Source

pub const BadCertificateTimeInvalid: Self

Source

pub const BadCertificateIssuerTimeInvalid: Self

Source

pub const BadCertificateHostNameInvalid: Self

Source

pub const BadCertificateUriInvalid: Self

Source

pub const BadCertificateUseNotAllowed: Self

Source

pub const BadCertificateIssuerUseNotAllowed: Self

Source

pub const BadCertificateUntrusted: Self

Source

pub const BadCertificateRevocationUnknown: Self

Source

pub const BadCertificateIssuerRevocationUnknown: Self

Source

pub const BadCertificateRevoked: Self

Source

pub const BadCertificateIssuerRevoked: Self

Source

pub const BadUserAccessDenied: Self

Source

pub const BadIdentityTokenInvalid: Self

Source

pub const BadIdentityTokenRejected: Self

Source

pub const BadSecureChannelIdInvalid: Self

Source

pub const BadInvalidTimestamp: Self

Source

pub const BadNonceInvalid: Self

Source

pub const BadSessionIdInvalid: Self

Source

pub const BadSessionClosed: Self

Source

pub const BadSessionNotActivated: Self

Source

pub const BadSubscriptionIdInvalid: Self

Source

pub const BadRequestHeaderInvalid: Self

Source

pub const BadTimestampsToReturnInvalid: Self

Source

pub const BadRequestCancelledByClient: Self

Source

pub const BadNoCommunication: Self

Source

pub const BadWaitingForInitialData: Self

Source

pub const BadNodeIdInvalid: Self

Source

pub const BadNodeIdUnknown: Self

Source

pub const BadAttributeIdInvalid: Self

Source

pub const BadIndexRangeInvalid: Self

Source

pub const BadIndexRangeNoData: Self

Source

pub const BadDataEncodingInvalid: Self

Source

pub const BadDataEncodingUnsupported: Self

Source

pub const BadNotReadable: Self

Source

pub const BadNotWritable: Self

Source

pub const BadOutOfRange: Self

Source

pub const BadNotSupported: Self

Source

pub const BadNotFound: Self

Source

pub const BadObjectDeleted: Self

Source

pub const BadNotImplemented: Self

Source

pub const BadMonitoringModeInvalid: Self

Source

pub const BadMonitoredItemIdInvalid: Self

Source

pub const BadMonitoredItemFilterInvalid: Self

Source

pub const BadMonitoredItemFilterUnsupported: Self

Source

pub const BadFilterNotAllowed: Self

Source

pub const BadStructureMissing: Self

Source

pub const BadEventFilterInvalid: Self

Source

pub const BadContentFilterInvalid: Self

Source

pub const BadFilterOperandInvalid: Self

Source

pub const BadContinuationPointInvalid: Self

Source

pub const BadNoContinuationPoints: Self

Source

pub const BadReferenceTypeIdInvalid: Self

Source

pub const BadBrowseDirectionInvalid: Self

Source

pub const BadNodeNotInView: Self

Source

pub const BadServerUriInvalid: Self

Source

pub const BadServerNameMissing: Self

Source

pub const BadDiscoveryUrlMissing: Self

Source

pub const BadSempahoreFileMissing: Self

Source

pub const BadRequestTypeInvalid: Self

Source

pub const BadSecurityModeRejected: Self

Source

pub const BadSecurityPolicyRejected: Self

Source

pub const BadTooManySessions: Self

Source

pub const BadUserSignatureInvalid: Self

Source

pub const BadApplicationSignatureInvalid: Self

Source

pub const BadNoValidCertificates: Self

Source

pub const BadRequestCancelledByRequest: Self

Source

pub const BadParentNodeIdInvalid: Self

Source

pub const BadReferenceNotAllowed: Self

Source

pub const BadNodeIdRejected: Self

Source

pub const BadNodeIdExists: Self

Source

pub const BadNodeClassInvalid: Self

Source

pub const BadBrowseNameInvalid: Self

Source

pub const BadBrowseNameDuplicated: Self

Source

pub const BadNodeAttributesInvalid: Self

Source

pub const BadTypeDefinitionInvalid: Self

Source

pub const BadSourceNodeIdInvalid: Self

Source

pub const BadTargetNodeIdInvalid: Self

Source

pub const BadDuplicateReferenceNotAllowed: Self

Source

pub const BadInvalidSelfReference: Self

Source

pub const BadReferenceLocalOnly: Self

Source

pub const BadNoDeleteRights: Self

Source

pub const BadServerIndexInvalid: Self

Source

pub const BadViewIdUnknown: Self

Source

pub const BadTooManyMatches: Self

Source

pub const BadQueryTooComplex: Self

Source

pub const BadNoMatch: Self

Source

pub const BadMaxAgeInvalid: Self

Source

pub const BadHistoryOperationInvalid: Self

Source

pub const BadHistoryOperationUnsupported: Self

Source

pub const BadWriteNotSupported: Self

Source

pub const BadTypeMismatch: Self

Source

pub const BadMethodInvalid: Self

Source

pub const BadArgumentsMissing: Self

Source

pub const BadTooManySubscriptions: Self

Source

pub const BadTooManyPublishRequests: Self

Source

pub const BadNoSubscription: Self

Source

pub const BadSequenceNumberUnknown: Self

Source

pub const BadMessageNotAvailable: Self

Source

pub const BadInsufficientClientProfile: Self

Source

pub const BadTcpServerTooBusy: Self

Source

pub const BadTcpMessageTypeInvalid: Self

Source

pub const BadTcpSecureChannelUnknown: Self

Source

pub const BadTcpMessageTooLarge: Self

Source

pub const BadTcpNotEnoughResources: Self

Source

pub const BadTcpInternalError: Self

Source

pub const BadTcpEndpointUrlInvalid: Self

Source

pub const BadRequestInterrupted: Self

Source

pub const BadRequestTimeout: Self

Source

pub const BadSecureChannelClosed: Self

Source

pub const BadSecureChannelTokenUnknown: Self

Source

pub const BadSequenceNumberInvalid: Self

Source

pub const BadConfigurationError: Self

Source

pub const BadNotConnected: Self

Source

pub const BadDeviceFailure: Self

Source

pub const BadSensorFailure: Self

Source

pub const BadOutOfService: Self

Source

pub const BadDeadbandFilterInvalid: Self

Source

pub const BadRefreshInProgress: Self

Source

pub const BadConditionAlreadyDisabled: Self

Source

pub const BadConditionDisabled: Self

Source

pub const BadEventIdUnknown: Self

Source

pub const BadNoData: Self

Source

pub const BadDataLost: Self

Source

pub const BadDataUnavailable: Self

Source

pub const BadEntryExists: Self

Source

pub const BadNoEntryExists: Self

Source

pub const BadTimestampNotSupported: Self

Source

pub const BadInvalidArgument: Self

Source

pub const BadConnectionRejected: Self

Source

pub const BadDisconnect: Self

Source

pub const BadConnectionClosed: Self

Source

pub const BadInvalidState: Self

Source

pub const BadEndOfStream: Self

Source

pub const BadNoDataAvailable: Self

Source

pub const BadWaitingForResponse: Self

Source

pub const BadOperationAbandoned: Self

Source

pub const BadExpectedStreamToBlock: Self

Source

pub const BadWouldBlock: Self

Source

pub const BadSyntaxError: Self

Source

pub const BadMaxConnectionsReached: Self

Source

pub const BadRequestTooLarge: Self

Source

pub const BadResponseTooLarge: Self

Source

pub const BadEventNotAcknowledgeable: Self

Source

pub const BadInvalidTimestampArgument: Self

Source

pub const BadProtocolVersionUnsupported: Self

Source

pub const BadStateNotActive: Self

Source

pub const BadFilterOperatorInvalid: Self

Source

pub const BadFilterOperatorUnsupported: Self

Source

pub const BadFilterOperandCountMismatch: Self

Source

pub const BadFilterElementInvalid: Self

Source

pub const BadFilterLiteralInvalid: Self

Source

pub const BadIdentityChangeNotSupported: Self

Source

pub const BadNotTypeDefinition: Self

Source

pub const BadViewTimestampInvalid: Self

Source

pub const BadViewParameterMismatch: Self

Source

pub const BadViewVersionInvalid: Self

Source

pub const BadConditionAlreadyEnabled: Self

Source

pub const BadDialogNotActive: Self

Source

pub const BadDialogResponseInvalid: Self

Source

pub const BadConditionBranchAlreadyAcked: Self

Source

pub const BadConditionBranchAlreadyConfirmed: Self

Source

pub const BadConditionAlreadyShelved: Self

Source

pub const BadConditionNotShelved: Self

Source

pub const BadShelvingTimeOutOfRange: Self

Source

pub const BadAggregateListMismatch: Self

Source

pub const BadAggregateNotSupported: Self

Source

pub const BadAggregateInvalidInputs: Self

Source

pub const BadBoundNotFound: Self

Source

pub const BadBoundNotSupported: Self

Source

pub const BadAggregateConfigurationRejected: Self

Source

pub const BadTooManyMonitoredItems: Self

Source

pub const BadDominantValueChanged: Self

Source

pub const BadDependentValueChanged: Self

Source

pub const BadRequestNotAllowed: Self

Source

pub const BadTooManyArguments: Self

Source

pub const BadSecurityModeInsufficient: Self

Source

pub const BadCertificateChainIncomplete: Self

Source

pub const BadLicenseExpired: Self

Source

pub const BadLicenseLimitsExceeded: Self

Source

pub const BadLicenseNotAvailable: Self

Source

pub const BadNotExecutable: Self

Source

pub const BadNumericOverflow: Self

Source

pub const BadRequestNotComplete: Self

Source

pub const BadCertificatePolicyCheckFailed: Self

Source

pub const BadAlreadyExists: Self

Source

pub const BadEdited_OutOfRange: Self

Source

pub const BadInitialValue_OutOfRange: Self

Source

pub const BadOutOfRange_DominantValueChanged: Self

Source

pub const BadEdited_OutOfRange_DominantValueChanged: Self

Source

pub const BadOutOfRange_DominantValueChanged_DependentValueChanged: Self

Source

pub const BadEdited_OutOfRange_DominantValueChanged_DependentValueChanged: Self

Source

pub const fn empty() -> Self

Returns an empty set of flags.

Source

pub const fn all() -> Self

Returns the set containing all flags.

Source

pub const fn bits(&self) -> u32

Returns the raw value of the flags currently stored.

Source

pub const fn from_bits(bits: u32) -> Option<Self>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Source

pub const fn from_bits_truncate(bits: u32) -> Self

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Source

pub const unsafe fn from_bits_unchecked(bits: u32) -> Self

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

§Safety

The caller of the bitflags! macro can chose to allow or disallow extra bits for their bitflags type.

The caller of from_bits_unchecked() has to ensure that all bits correspond to a defined flag or that extra bits are valid for this bitflags type.

Source

pub const fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

Source

pub const fn is_all(&self) -> bool

Returns true if all flags are currently set.

Source

pub const fn intersects(&self, other: Self) -> bool

Returns true if there are flags common to both self and other.

Source

pub const fn contains(&self, other: Self) -> bool

Returns true if all of the flags in other are contained within self.

Source

pub fn insert(&mut self, other: Self)

Inserts the specified flags in-place.

Source

pub fn remove(&mut self, other: Self)

Removes the specified flags in-place.

Source

pub fn toggle(&mut self, other: Self)

Toggles the specified flags in-place.

Source

pub fn set(&mut self, other: Self, value: bool)

Inserts or removes the specified flags depending on the passed value.

Source

pub const fn intersection(self, other: Self) -> Self

Returns the intersection between the flags in self and other.

Specifically, the returned set contains only the flags which are present in both self and other.

This is equivalent to using the & operator (e.g. ops::BitAnd), as in flags & other.

Source

pub const fn union(self, other: Self) -> Self

Returns the union of between the flags in self and other.

Specifically, the returned set contains all flags which are present in either self or other, including any which are present in both (see Self::symmetric_difference if that is undesirable).

This is equivalent to using the | operator (e.g. ops::BitOr), as in flags | other.

Source

pub const fn difference(self, other: Self) -> Self

Returns the difference between the flags in self and other.

Specifically, the returned set contains all flags present in self, except for the ones present in other.

It is also conceptually equivalent to the “bit-clear” operation: flags & !other (and this syntax is also supported).

This is equivalent to using the - operator (e.g. ops::Sub), as in flags - other.

Source

pub const fn symmetric_difference(self, other: Self) -> Self

Returns the symmetric difference between the flags in self and other.

Specifically, the returned set contains the flags present which are present in self or other, but that are not present in both. Equivalently, it contains the flags present in exactly one of the sets self and other.

This is equivalent to using the ^ operator (e.g. ops::BitXor), as in flags ^ other.

Source

pub const fn complement(self) -> Self

Returns the complement of this set of flags.

Specifically, the returned set contains all the flags which are not set in self, but which are allowed for this type.

Alternatively, it can be thought of as the set difference between Self::all() and self (e.g. Self::all() - self)

This is equivalent to using the ! operator (e.g. ops::Not), as in !flags.

Source§

impl StatusCode

Source

pub fn name(self) -> &'static str

Returns the descriptive name for the status code, e.g. to put a meaningful code in a log file

Source

pub fn description(self) -> &'static str

Returns the descriptive text for the status code

Source

pub fn from_u32(code: u32) -> Option<StatusCode>

Takes an OPC UA status code as a UInt32 and returns the matching StatusCode, assuming there is one Note that this is lossy since any bits associated with the status code will be ignored.

Source§

impl StatusCode

Source

pub fn bitflags(&self) -> StatusCode

Returns the bit flags of the status code, i.e. it masks out the actual status code value

Source

pub fn status(&self) -> StatusCode

Returns the status only, i.e. it masks out any bit flags that come with the status code

Source

pub fn is_bad(&self) -> bool

Tests if the status code is bad

Source

pub fn is_uncertain(&self) -> bool

Tests if the status code is uncertain

Source

pub fn is_good(&self) -> bool

Tests if the status code is good (i.e. not bad or uncertain)

Trait Implementations§

Source§

impl Binary for StatusCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl BinaryEncoder<StatusCode> for StatusCode

Source§

fn byte_len(&self) -> usize

Returns the exact byte length of the structure as it would be if encode were called. This may be called prior to writing to ensure the correct amount of space is available.
Source§

fn encode<S: Write>(&self, stream: &mut S) -> EncodingResult<usize>

Encodes the instance to the write stream.
Source§

fn decode<S: Read>(stream: &mut S, _: &DecodingOptions) -> EncodingResult<Self>

Decodes an instance from the read stream. The decoding options contains restrictions set by the server / client on the length of strings, arrays etc. If these limits are exceeded the implementation should return with a BadDecodingError as soon as possible.
Source§

fn encode_to_vec(&self) -> Vec<u8>

Source§

impl BitAnd for StatusCode

Source§

fn bitand(self, other: Self) -> Self

Returns the intersection between the two sets of flags.

Source§

type Output = StatusCode

The resulting type after applying the & operator.
Source§

impl BitAndAssign for StatusCode

Source§

fn bitand_assign(&mut self, other: Self)

Disables all flags disabled in the set.

Source§

impl BitOr for StatusCode

Source§

fn bitor(self, other: StatusCode) -> Self

Returns the union of the two sets of flags.

Source§

type Output = StatusCode

The resulting type after applying the | operator.
Source§

impl BitOrAssign for StatusCode

Source§

fn bitor_assign(&mut self, other: Self)

Adds the set of flags.

Source§

impl BitXor for StatusCode

Source§

fn bitxor(self, other: Self) -> Self

Returns the left flags, but with all the right flags toggled.

Source§

type Output = StatusCode

The resulting type after applying the ^ operator.
Source§

impl BitXorAssign for StatusCode

Source§

fn bitxor_assign(&mut self, other: Self)

Toggles the set of flags.

Source§

impl Clone for StatusCode

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for StatusCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for StatusCode

Source§

fn deserialize<D>( deserializer: D, ) -> Result<Self, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for StatusCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for StatusCode

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl Extend<StatusCode> for StatusCode

Source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Source§

impl From<StatusCode> for DataValue

Source§

fn from(v: StatusCode) -> Self

Converts to this type from the input type.
Source§

impl From<StatusCode> for Error

Source§

fn from(e: StatusCode) -> Error

Converts to this type from the input type.
Source§

impl From<StatusCode> for Variant

Source§

fn from(v: StatusCode) -> Self

Converts to this type from the input type.
Source§

impl FromIterator<StatusCode> for StatusCode

Source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

Creates a value from an iterator. Read more
Source§

impl FromStr for StatusCode

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for StatusCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerHex for StatusCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Not for StatusCode

Source§

fn not(self) -> Self

Returns the complement of this set of flags.

Source§

type Output = StatusCode

The resulting type after applying the ! operator.
Source§

impl Octal for StatusCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Ord for StatusCode

Source§

fn cmp(&self, other: &StatusCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for StatusCode

Source§

fn eq(&self, other: &StatusCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for StatusCode

Source§

fn partial_cmp(&self, other: &StatusCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for StatusCode

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Sub for StatusCode

Source§

fn sub(self, other: Self) -> Self

Returns the set difference of the two sets of flags.

Source§

type Output = StatusCode

The resulting type after applying the - operator.
Source§

impl SubAssign for StatusCode

Source§

fn sub_assign(&mut self, other: Self)

Disables all flags enabled in the set.

Source§

impl UpperHex for StatusCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for StatusCode

Source§

impl Eq for StatusCode

Source§

impl StructuralPartialEq for StatusCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,