pub struct RemoteReject { /* private fields */ }
Expand description
Errors that can be returned by the remote peer in response to a message
Implementations§
Source§impl RemoteReject
impl RemoteReject
Sourcepub fn error_code(&self) -> Option<Result<ErrorCode, u8>>
pub fn error_code(&self) -> Option<Result<ErrorCode, u8>>
Retrieve the error code returned by the remote end. Returns Some(Err(u8)) if the code isn’t recognized, or None if it wasn’t included
Sourcepub fn service_category(&self) -> Option<Result<ServiceCategory, u8>>
pub fn service_category(&self) -> Option<Result<ServiceCategory, u8>>
Retrieve the ServiceCategory returned by the remote end. Returns Err(u8) if the category wasn’t recognized, or None if it wasn’t included
Sourcepub fn stream_id(&self) -> Option<StreamEndpointId>
pub fn stream_id(&self) -> Option<StreamEndpointId>
Retrieve the stream identifier returned from the remote end. Returns None if it wasn’t included.
Trait Implementations§
Source§impl Debug for RemoteReject
impl Debug for RemoteReject
Source§impl Display for RemoteReject
impl Display for RemoteReject
Source§impl Error for RemoteReject
impl Error for RemoteReject
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<RemoteReject> for Error
impl From<RemoteReject> for Error
Source§fn from(source: RemoteReject) -> Self
fn from(source: RemoteReject) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RemoteReject
impl RefUnwindSafe for RemoteReject
impl Send for RemoteReject
impl Sync for RemoteReject
impl Unpin for RemoteReject
impl UnwindSafe for RemoteReject
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