pub struct OwnerControlError {
pub code: i32,
pub message: String,
pub request_id: Option<u64>,
pub current_revision: Option<u64>,
}Fields§
§code: i32§message: String§request_id: Option<u64>§current_revision: Option<u64>Implementations§
Source§impl OwnerControlError
impl OwnerControlError
Sourcepub fn code(&self) -> OwnerControlErrorCode
pub fn code(&self) -> OwnerControlErrorCode
Returns the enum value of code, or the default if the field is set to an invalid enum value.
Sourcepub fn set_code(&mut self, value: OwnerControlErrorCode)
pub fn set_code(&mut self, value: OwnerControlErrorCode)
Sets code to the provided enum value.
Sourcepub fn request_id(&self) -> u64
pub fn request_id(&self) -> u64
Returns the value of request_id, or the default value if request_id is unset.
Sourcepub fn current_revision(&self) -> u64
pub fn current_revision(&self) -> u64
Returns the value of current_revision, or the default value if current_revision is unset.
Trait Implementations§
Source§impl Clone for OwnerControlError
impl Clone for OwnerControlError
Source§fn clone(&self) -> OwnerControlError
fn clone(&self) -> OwnerControlError
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 moreSource§impl Debug for OwnerControlError
impl Debug for OwnerControlError
Source§impl Default for OwnerControlError
impl Default for OwnerControlError
Source§fn default() -> OwnerControlError
fn default() -> OwnerControlError
Returns the “default value” for a type. Read more
Source§impl From<OwnerControlError> for OwnerControlRemoteError
impl From<OwnerControlError> for OwnerControlRemoteError
Source§fn from(error: OwnerControlError) -> Self
fn from(error: OwnerControlError) -> Self
Converts to this type from the input type.
Source§impl Message for OwnerControlError
impl Message for OwnerControlError
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for OwnerControlError
impl PartialEq for OwnerControlError
Source§fn eq(&self, other: &OwnerControlError) -> bool
fn eq(&self, other: &OwnerControlError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ValidateControlFrame for OwnerControlError
impl ValidateControlFrame for OwnerControlError
fn validate_frame(&self) -> Result<(), ControlFrameError>
impl StructuralPartialEq for OwnerControlError
Auto Trait Implementations§
impl Freeze for OwnerControlError
impl RefUnwindSafe for OwnerControlError
impl Send for OwnerControlError
impl Sync for OwnerControlError
impl Unpin for OwnerControlError
impl UnsafeUnpin for OwnerControlError
impl UnwindSafe for OwnerControlError
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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